You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If are you willing to accept a PR to solve this issue, I can offer to write it: for example considering undefined the loopback address or adding an special option for that case.
Yea, that's what I'm thinking: to maybe just consider the UNIX socket to be the loopback address. It's probably better solved in the forwarded module, maybe. Since a TCP/IP socket in Node.js cal also return undefined for req.connection.remoteAddress, simply assuming that undefined means socket is not really enough to know that for sure.
Activity
dougwilson commentedon Jul 25, 2017
Yea, that's what I'm thinking: to maybe just consider the UNIX socket to be the loopback address. It's probably better solved in the
forwardedmodule, maybe. Since a TCP/IP socket in Node.js cal also returnundefinedforreq.connection.remoteAddress, simply assuming thatundefinedmeans socket is not really enough to know that for sure.theneva commentedon Jun 1, 2021
Hi! 👋 I believe this issue was fixed in the
forwardedmodule in 0.2.0, which was pulled into this module in 97965bd? Maybe this issue can be closed.(For posterity, I think this commit fixed the problem: jshttp/forwarded@63a16a6)