Closed loretoparisi closed 4 years ago
By default this library will use the req.ip
value https://github.com/expressjs/morgan/blob/master/README.md#remote-addr
@dougwilson ok thank you, I'm not sure that it will consider req.headers['x-forwarded-for']
, req.headers['x-real-ip']
, etc.
Mogran will only consider what is there in the documentation link 👍
I have wrote a tiny middleware to get client's IP:
Now to print
req.ip
to every morgancombined
logging?