Closed jkelleyrtp closed 1 year ago
When I create a new localhost alias on macOS, IE 127.0.2.2, address.ip starts to return the wrong address.
This code is the culprit: https://github.com/node-modules/address/blob/master/lib/address.js#L94
This is really easy to simulate via the CLI.
From a fresh environment,
address.ip() == "192.168.86.25 "
However, when I bring up an alias
ifconfig lo0 alias 127.0.2.2 up
address.ip starts to return the localhost alias.
When I create a new localhost alias on macOS, IE 127.0.2.2, address.ip starts to return the wrong address.
This code is the culprit: https://github.com/node-modules/address/blob/master/lib/address.js#L94
This is really easy to simulate via the CLI.
From a fresh environment,
However, when I bring up an alias
address.ip starts to return the localhost alias.