Index: net/proxy/proxy_resolver_script.h |
=================================================================== |
--- net/proxy/proxy_resolver_script.h (revision 29974) |
+++ net/proxy/proxy_resolver_script.h (working copy) |
@@ -263,6 +263,14 @@ |
" date.setSeconds(date.getUTCSeconds());\n" \ |
" }\n" \ |
" return ((date1 <= date) && (date <= date2));\n" \ |
- "}\n" \ |
+ "}\n" |
+// This is a Microsoft extension to PAC for IPv6, see: |
+// http://blogs.msdn.com/wndp/articles/IPV6_PAC_Extensions_v0_9.aspx |
+#define PROXY_RESOLVER_SCRIPT_EX \ |
+ "function isResolvableEx(host) {\n" \ |
+ " var ip = dnsResolveEx(host);\n" \ |
wtc
2009/10/24 04:40:59
Nit: since dnsResolveEx returns all the addresses
|
+ " return (ip != '');\n" \ |
+ "}\n" |
+ |
#endif // NET_PROXY_PROXY_RESOLVER_SCRIPT_H_ |