don't pretend to support dbus on windows in dbus_export.h
[chromium-blink-merge.git] / net / data / proxy_resolver_v8_unittest / simple.js
blobc5dfa6d6f560cb8585db8044c10c4ccf2a92b92b
1 // PAC script which uses isInNet on both IP addresses and hosts, and calls
2 // isResolvable().
4 function FindProxyForURL(url, host) {
5 var my_ip = myIpAddress();
7 if (isInNet(my_ip, "172.16.0.0", "255.248.0.0")) {
8 return "PROXY a:80";
11 if (url.substring(0, 6) != "https:" &&
12 isInNet(host, "10.0.0.0", "255.0.0.0")) {
13 return "PROXY b:80";
16 if (dnsDomainIs(host, "foo.bar.baz.com") || !isResolvable(host)) {
17 return "PROXY c:100";
20 return "DIRECT";