function FindProxyForURL(url, host) { // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // =-=-=-= Fichier proxy.pac // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // =-=-=-= // =-=-=-= Dernière modification : [EB] 16/11/2011 // =-=-=-= // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // ----- // Direct pour Ufc // ----- if (dnsDomainIs(host, ".univ-fcomte.fr")) { return "DIRECT"; } if (shExpMatch(url, "http://localhost*")) { return "DIRECT"; } if (shExpMatch(url, "http://127.0.0.1*")) { return "DIRECT"; } // ----- // Direct pour Ufr SLHS // ----- if (dnsDomainIs(host, "umrthema")) { return "DIRECT"; } // ----- // Direct pour Ufr SMP // ----- if (shExpMatch(url, "http://wchub*")) { return "DIRECT"; } if (shExpMatch(url, "http://pchub*")) { return "DIRECT"; } if (shExpMatch(url, "http://wrh*")) { return "DIRECT"; } // ----- // Direct pour Ufr ST // ----- if (dnsDomainIs(host, "stsg.fr1")) { return "DIRECT"; } // ----- // Direct pour Cla // ----- if (isInNet(host, "172.20.19.128", "255.255.255.128")) { return "DIRECT"; } // ----- // Direct pour Iut 25 // ----- if (isInNet(host, "172.20.3.0", "255.255.255.0")) { return "DIRECT"; } if (isInNet(host, "172.20.56.0", "255.255.252.0")) { return "DIRECT"; } if (isInNet(host, "172.20.137.0", "255.255.255.0")) { return "DIRECT"; } if (isInNet(host, "172.20.148.0", "255.255.254.0")) { return "DIRECT"; } // ----- // Direct pour Iut 70 // ----- if (isInNet(host, "172.20.48.0", "255.255.254.0")) { return "DIRECT"; } if (isInNet(host, "172.20.180.0", "255.255.255.0")) { return "DIRECT"; } if (isInNet(host, "172.20.181.32", "255.255.255.224")) { return "DIRECT"; } // ----- // Direct pour Sig // ----- if (dnsDomainIs(host, "goudidom.local")) { return "DIRECT"; } // ----- // Direct pour Formation Continue // ----- if (dnsDomainIs(host, "fc.local")) { return "DIRECT"; } // ----- // Direct pour SCD // ----- if (dnsDomainIs(host, "belfort.scd")) { return "DIRECT"; } // ----- // Direct pour Femto // ----- if (dnsDomainIs(host, ".femto-st.fr")) { return "DIRECT"; } // ----- // Direct pour MSHE // ----- if (dnsDomainIs(host, "mshe.univ-fcomte.fr")) { return "DIRECT"; } // ----- // Direct pour Géosciences // ----- if (isInNet(host, "172.20.68.128", "255.255.255.128")) { return "DIRECT"; } // ----- // Direct pour Chrono-Environnement // ----- if (isInNet(host, "172.20.124.0", "255.255.254.0")) { return "DIRECT"; } if (isInNet(host, "194.57.87.128", "255.255.255.192")) { return "DIRECT"; } // ----- // Direct pour le Wifi (Aruba) // ----- if (shExpMatch(url, "*securelogin.arubanetworks.com:443*")) { return "DIRECT"; } if (shExpMatch(url, "*securelogin.arubanetworks.com*")) { return "DIRECT"; } // ----- // Vers le proxy par défaut pour les autres destinations // ----- return "PROXY proxy-web.univ-fcomte.fr:3128" }