-
Notifications
You must be signed in to change notification settings - Fork 223
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
use golang net lib to parse google json param [ecs] #84
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution! I remember I once used net.ParseCIDR for this, but later I rewrote it without net.ParseCIDR. Perhaps the problem which prevented me from using net.ParseCIDR has already been fixed by Golang. Thank you again! |
test for net.ParseCIDR
The results of
|
The test fails with IPv4-mapped-IPv6 addresses:
|
The result of msg.Pack() is ok~
|
A recent pull does not pass the test. |
use net.ParseCIDR to parse edns_client_subnet.