Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When creating PAC files, one can use functions like isInNet, for example if (isInNet(host, "10.9.9.9", "255.0.255.0")) return "DIRECT"; However, it doesn't make sense to use IP and wildcard/mask when using IPv6 address.

My question is, what is the standard for PAC files when using IP addresses? Do PAC files even support IPv6 addresses? Where can I verify?

Thanks

share|improve this question

migrated from stackoverflow.com May 7 '11 at 11:14

This question came from our site for professional and enthusiast programmers.

1  
Why do IPv6 netmasks not make sense to you? –  Steve-o May 4 '11 at 10:38
add comment

1 Answer

Various blog articles have reduced to using shExpMatch:

http://it.knightnet.org.uk/2009/02/proxypac-files-mozilla-firefox.html

http://desrablog.blogspot.com/2009/04/creating-pac-to-auto-config-ipv6-proxy.html

On Windows stack native support for IPv6 inside Inet & WinHTTP libraries appears with Vista:

http://blogs.msdn.com/b/wndp/archive/2006/07/18/ipv6-wpad-for-winhttp-and-wininet.aspx

An interesting bug in the Chromium project discussing IPv6 handling between browsers:

http://code.google.com/p/chromium/issues/detail?id=24641

For MSIE compatibility the following APIs only function with IPv4 addresses:

myIpAddress()
dnsResolve()
isResolvable()

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.