function FindProxyForURL(url, host) { if (localHostOrDomainIs(host, "mgskiosk.mgs.vic.edu.au")) return "PROXY 203.25.82.62:80"; if (isPlainHostName(host) || isInNet(host, "203.25.82.0", "255.255.255.0") || isInNet(host, "192.168.211.0", "255.255.255.0") || isInNet(host, "172.17.0.0", "255.255.0.0") || isInNet(host, "172.18.0.0", "255.255.0.0") || dnsDomainIs(host, ".mgs.vic.edu.au")) return "DIRECT"; if (isInNet(myIpAddress(), "172.16.0.0", "255.255.0.0") || isInNet(myIpAddress(), "172.17.0.0", "255.255.0.0") || isInNet(myIpAddress(), "172.18.0.0", "255.255.0.0") || isInNet(myIpAddress(), "172.20.0.0", "255.255.252.0") || isInNet(myIpAddress(), "172.24.0.0", "255.255.252.0") || isInNet(myIpAddress(), "172.31.0.0", "255.255.0.0") || isInNet(myIpAddress(), "10.10.0.0", "255.255.248.0") || isInNet(myIpAddress(), "10.20.0.0", "255.255.252.0") || isInNet(myIpAddress(), "10.20.4.0", "255.255.252.0") || isInNet(myIpAddress(), "10.22.0.0", "255.255.255.0") || isInNet(myIpAddress(), "10.21.0.0", "255.255.255.0") || isInNet(myIpAddress(), "10.24.0.0", "255.255.224.0") || isInNet(myIpAddress(), "10.24.60.0", "255.255.255.0") || isInNet(myIpAddress(), "10.24.61.0", "255.255.255.0") || isInNet(myIpAddress(), "10.24.62.0", "255.255.255.0") || isInNet(myIpAddress(), "10.25.0.0", "255.255.252.0") || isInNet(myIpAddress(), "10.50.0.0", "255.255.224.0") || isInNet(myIpAddress(), "10.51.0.0", "255.255.224.0") || isInNet(myIpAddress(), "10.52.0.0", "255.255.224.0") || isInNet(myIpAddress(), "192.168.212.0", "255.255.255.0") || isInNet(myIpAddress(), "192.168.192.0", "255.255.255.0")) return "PROXY 203.25.82.62:80"; //if(isInNet(myIpAddress(), "10.21.0.0", "255.255.255.0")) // return "PROXY 203.25.82.62:80"; return "DIRECT"; }