mageddo / dns-proxy-server

Solve your DNS hosts from your docker containers, then from your local configuration, then from internet
http://mageddo.github.io/dns-proxy-server/
Apache License 2.0
766 stars 76 forks source link

#427: Hotfix for ipv6 represented as subnet usecase #481

Closed mageddo closed 2 weeks ago

mageddo commented 2 weeks ago

As reported at #427, For an unidentified reason, sometimes network api responds an IPV6 with a subnet mask instead of a plain IP which is the expected behavior, a hotfix for that was made to extract the IP from this string when it happens, it only happens with ipv6 addresses.

Expected address

"Gateway": "fddb:21e4:36d4:2::1"

Actual address

"Gateway": "fddb:21e4:36d4:2::1/64"