blackgear / mono_pac

A minimal proxy auto config file generator based on ip range.
MIT License
200 stars 56 forks source link

handle ipv6 address. #2

Closed MirrorDM closed 9 years ago

MirrorDM commented 9 years ago

BTW, if you merge this PR, please also compress the mono.min.js with the change.

blackgear commented 9 years ago

Well, dnsResolve() is designed to return IPv4 addr only.

For IE: http://blogs.msdn.com/b/wndp/archive/2006/07/18/ipv6-wpad-for-winhttp-and-wininet.aspx IE use dnsResolveEx for IPv4 and IPv6, and dnsResolve for IPv4 only.

For Chromium: https://code.google.com/p/chromium/issues/detail?id=24641 Chromium disable IPv6 results for the PAC bindings: dnsResolve()

According to your response, Firefox seems behave different....

Thanks for the pull request!