(req, res)
| 1 | import { noCacheControl } from './cache-control.js' |
| 2 | |
| 3 | export default function remoteIp(req, res) { |
| 4 | noCacheControl(res) |
| 5 | res.json({ |
| 6 | ip: req.ip, |
| 7 | 'x-forwarded-for': req.headers['x-forwarded-for'] || null, |
| 8 | 'fastly-client-ip': req.headers['fastly-client-ip'] || null, |
| 9 | }) |
| 10 | } |
nothing calls this directly
no outgoing calls
no test coverage detected