1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
function FindProxyForURL(url, host) {
// Direct connections to non-FQDN hosts
if (isPlainHostName(host)) {
return "DIRECT";
}
// localhost
if (localHostOrDomainIs(host,"localhost")) {
return "PROXY proxy3.sncf.fr:8080; PROXY proxylam3.sncf.fr:8080; ";
}
if (isInNet(host, "127.0.0.1", "255.255.255.255")) {
return "PROXY proxy3.sncf.fr:8080; PROXY proxylam3.sncf.fr:8080; ";
}
if (isInNet(host, "10.0.0.0", "255.0.0.0") || isInNet(host, "195.25.238.128", "255.255.255.224") || isInNet(host, "81.80.235.0", "255.255.255.224") || isInNet(host, "171.16.0.0", "255.255.0.0")) {
return "PROXY proxy3.sncf.fr:8080; PROXY proxylam3.sncf.fr:8080; ";
}
if (localHostOrDomainIs(host, "sillons.rff.fr")) {
return "PROXY proxy3.sncf.fr:8080; PROXY proxylam3.sncf.fr:8080; ";
}
if (localHostOrDomainIs(host, "cronos.rff.fr")) {
return "PROXY proxy3.sncf.fr:8080; PROXY proxylam3.sncf.fr:8080; ";
}
if (localHostOrDomainIs(host, "sipgplv.rff.fr")) {
return "PROXY proxy3.sncf.fr:8080; PROXY proxylam3.sncf.fr:8080; ";
}
if (localHostOrDomainIs(host, "medias.sncf.com")) {
return "PROXY proxy3.sncf.fr:8080; PROXY proxylam3.sncf.fr:8080; ";
}
return "PROXY 10.6.75.231:8080"; } |
Partager