Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Policy evaluation: IPV4 mapped as IPV6 addresses need to be converted #133

Closed
rahulreddy opened this issue Aug 5, 2016 · 0 comments
Closed
Labels

Comments

@rahulreddy
Copy link
Collaborator

Since nodejs server listen's to ipv4 and ipv6 addresses on the same socket, net.Socket.remoteAddress gives us an ipv4 address in ipv6 format like ::ffff:127.0.0.1. This needs to be converted to ipv4 if the policy evaluation condition is specified in ipv4.
https://github.com/whitequark/ipaddr.js seems to be a good module to accomplish that replacing the current node-ip module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant