Skip to content

check the prefix convert ip6 back to ip4 if ip is ip4 #1871

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gubaojian
Copy link
Contributor

check the prefix convert ip6 back to ip4 if ip is ip4。
getRemoteAddressAsText() will return ip6 address event ip is ip4.
test 127.0.0.1 be convert to 0000:0000:0000:0000:0000:ffff:7f00:0001
test 192.168.71.87 be convert to 0000:0000:0000:0000:0000:ffff:c0a8:4757

the above will convert ip6 to ip4 if the address is ip4. and fix the issues.

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

Successfully merging this pull request may close these issues.

1 participant