un33k / node-ipware

Returns the real IP address of users in Node.js
MIT License
124 stars 17 forks source link

Sample code produces invalid result #13

Closed alesju closed 7 years ago

alesju commented 7 years ago

As per the title, the sample code on the readme page produces the following: { clientIp: '::ffff:127.0.0.1', clientIpRoutable: true }

node 7.9.0 macOS 10.12.4

Any ideas?

un33k commented 7 years ago

@alesju IPV6 encapsulation support for IPV4 is added in https://github.com/un33k/node-ipware/pull/16