在proxy.pac中使用IPv6地址

当创buildPAC文件时,可以使用isInNet等函数,例如(isInNet(host,“10.9.9.9”,“255.0.255.0”))返回“DIRECT”。 但是,使用IPv6地址时使用IP和通配符/掩码是没有意义的。

我的问题是,使用IP地址时PAC文件的标准是什么? PAC文件是否支持IPv6地址? 我在哪里可以validation?

谢谢

各种博客文章已经减less到使用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

在Windows上,Inet和WinHTTP库中的IPv6本地支持在Vista中出现:

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

Chromium项目中讨论浏览器之间IPv6处理的一个有趣的错误:

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

对于MSIE兼容性,以下API仅适用于IPv4地址:

myIpAddress()
dnsResolve()
isResolvable()