2019-11-14 13:45:33 +03:00
|
|
|
// Example PAC file that returns a proxy for the urls that have the
|
2019-07-26 22:21:03 +03:00
|
|
|
// xamarin domain name.
|
|
|
|
function FindProxyForURL(url, host) {
|
2021-05-03 03:11:16 +03:00
|
|
|
if (dnsDomainIs(host, "dotnet.microsoft.com"))
|
2019-07-26 22:21:03 +03:00
|
|
|
return "PROXY example.com:8080";
|
|
|
|
|
2019-11-14 13:45:33 +03:00
|
|
|
if (dnsDomainIs(host, "microsoft.com"))
|
2019-07-26 22:21:03 +03:00
|
|
|
return "DIRECT";
|
|
|
|
}
|