IPv6-Aware Proxy Helper API Definitions

In order to take advantage of the IPv6 enabled functions, IT administrators must define within their WPAD script, a function called FindProxyForURLEx (url, host) which will replace the legacy FindProxyForUrl (url, host) function. Only from the new FindProxyForURLEx function will administrators be able to execute the new functions.

We also attempted to simplify work for developers, by aligning our functions to return different types of IP addresses in the same order of preference as other networking components, specifically IPv6 addresses followed by IPv4 addresses (i.e. current behavior for Winsock’s getaddrinfo(..) function).

The following functions are extensions to the Navigator Proxy Auto-Config (PAC) File Format specification to enable WPAD scripts to handle IPv6 capable networks.

Predefined Functions and Environment for the JavaScript Function FindProxyforURLEx

Hostname based conditions

isResolvableEx

Determines if a given host string can resolve to an IP address.

isInNetEx

Determines if an IP address is in a specific subnet.

Related utility functions

dnsResolveEx

Resolve a host string to its IP address.

myIPAddressEx

Finds all the IP addresses for localhost.

sortIpAddressList

Sorts a list of IP addresses.

getClientVersion

Gets the version of the WPAD processing engine.

Note

This functionality requires Windows Internet Explorer 7 or greater.