function FindProxyForURL(url, host) { if(shExpMatch(host,"*dagobah*") && isInNet(myIpAddress(),"192.168.201.0","255.255.255.0")) return "PROXY 10.20.0.51:8080"; else if(shExpMatch(host,"*jb*") && isInNet(myIpAddress(),"192.168.7.0","255.255.255.0")) return "DIRECT"; else if(shExpMatch(host,"mta01.federalit.net")) return "PROXY 10.20.0.51:8080"; else if(shExpMatch(host,"mta02.federalit.net") || shExpMatch(host,"10.10.11.11")) return "PROXY 192.168.20.15:3128"; else if(shExpMatch(host,"dagobah.internal.tsg")) return "PROXY 10.20.0.51:8080"; else if(isPlainHostName(host) || dnsDomainIs(host, "localhost") || dnsDomainIs(host, ".networkgaming.com.au") || shExpMatch(host,"*www.networkgaming.com.au*") || shExpMatch(host,"*webmail.wrestpoint*") || shExpMatch(host,"*webct.utas.edu.au*") || shExpMatch(host,"pix525-tsg-eth1") || shExpMatch(host,"10.101.254.251") || shExpMatch(host,"10.101.254.*")|| shExpMatch(host,"10.102.254.*")|| shExpMatch(host,"10.103.254.*")|| shExpMatch(host,"127.0.0.1") || shExpMatch(host,"10.10.10.*") || shExpMatch(host,"192.168.20.*") || shExpMatch(host,"192.168.21.*") || shExpMatch(host,"192.168.99.*") || shExpMatch(host,"192.168.57.245") || shExpMatch(host,"10.20.*") || shExpMatch(host,"10.21.*") || shExpMatch(host,"nsw-dev*") || shExpMatch(host,"nsw-live*") || shExpMatch(host,"192.168.1.2") || shExpMatch(host,"59.167.228.1") || shExpMatch(host,"gw0.pceftpos.com") || dnsDomainIs(host, ".calvin.nu") || dnsDomainIs(host, ".home") || dnsDomainIs(host, ".cable.nu") || dnsDomainIs(host, ".internal.ng") || dnsDomainIs(host, ".internal.wp") || dnsDomainIs(host, ".compassportal.com.au") || dnsDomainIs(host, ".compassportal.com") || dnsDomainIs(host, ".internal.ccr") || dnsDomainIs(host, ".mulawa.internal") || dnsDomainIs(host, ".federalit.net") || shExpMatch(host, "*thematrix.mochahost.com*") || shExpMatch(host, "*matrix.my-hosting-panel.com*") || shExpMatch(host, "203.25.104.51") || shExpMatch(host, "203.52.118.19") || shExpMatch(host, "203.42.151.57") || shExpMatch(host, "zaphod.prot.com.au") || dnsDomainIs(host, ".internal.tsg")) return "DIRECT"; else if(dnsDomainIs(host,"quickbeds.com") || dnsDomainIs(host,"needitnow.com.au") || dnsDomainIs(host,"oasisgaming.com.au") || dnsDomainIs(host,"needitnow.com") || dnsDomainIs(host,"tourism.tas.gov.au") || dnsDomainIs(host,"wotif.com")) return "PROXY 10.20.0.51:8080"; else if(shExpMatch(host,"192.9.200.*") && isInNet(myIpAddress(),"192.9.200.0","255.255.255.0")) return "DIRECT"; else if(isInNet(myIpAddress(),"192.168.20.0","255.255.255.0") || dnsDomainIs(host, ".oasisgaming.com.au") || isInNet(myIpAddress(),"192.168.21.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.40.0","255.255.255.0") || isInNet(myIpAddress(),"10.21.8.0","255.255.252.0") || isInNet(myIpAddress(),"10.103.254.0","255.255.255.0")) return "PROXY 10.21.0.10:8080"; else if(isInNet(myIpAddress(),"192.168.50.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.51.0","255.255.255.128")) return "PROXY 10.20.0.51:8080"; else if(isInNet(myIpAddress(),"192.168.60.192","255.255.255.224") || isInNet(myIpAddress(),"192.168.200.128","255.255.255.240") || isInNet(myIpAddress(),"192.168.200.144","255.255.255.240")) return "PROXY 10.101.254.114:3128"; else if(isInNet(myIpAddress(),"172.16.2.0","255.255.255.0") || isInNet(myIpAddress(),"172.16.1.0","255.255.255.0") || isInNet(myIpAddress(),"172.16.3.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.0.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.1.0","255.255.255.0") || isInNet(myIpAddress(),"10.0.0.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.4.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.5.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.7.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.10.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.41.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.55.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.57.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.58.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.60.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.61.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.62.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.63.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.99.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.200.128","255.255.255.240") || isInNet(myIpAddress(),"192.168.200.144","255.255.255.240") || isInNet(myIpAddress(),"192.168.201.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.203.0","255.255.255.0") || isInNet(myIpAddress(),"192.168.204.0","255.255.255.224") || isInNet(myIpAddress(),"192.9.200.0","255.255.255.0") || isInNet(myIpAddress(),"10.0.10.0","255.255.255.0") || isInNet(myIpAddress(),"10.20.0.0","255.255.240.0") || isInNet(myIpAddress(),"10.20.22.0","255.255.255.0") || isInNet(myIpAddress(),"10.20.16.0","255.255.252.0") || isInNet(myIpAddress(),"10.23.10.0","255.255.255.0") || isInNet(myIpAddress(),"10.101.254.0","255.255.255.0")) return "PROXY 10.20.0.51:8080"; else if(shExpMatch(myIpAddress(),"192.168.201.32","255.255.255.224")) return "DIRECT"; }