getClientIp = (req) ->
forwardedFor = req.header 'x-forwarded-for'
if forwardedFor
forwardedFor.split(',').shift()
else
req.connection.remoteAddress
Conteúdo para você se capacitar em programação
getClientIp = (req) ->
forwardedFor = req.header 'x-forwarded-for'
if forwardedFor
forwardedFor.split(',').shift()
else
req.connection.remoteAddress