function FindProxyForURL(url, host) { //begin //read current proxy configuration //set ffcs proxy configuration if (shExpMatch(host, '10.142.104.166') || shExpMatch(host, '10.143.164.215') || shExpMatch(host, '10.143.165.10') || shExpMatch(host, '10.143.165.251') || shExpMatch(host, '10.143.165.45') || shExpMatch(host, '10.143.165.55') || shExpMatch(host, '10.143.165.94') || shExpMatch(host, '10.218.25.129') || shExpMatch(host, '132.254.210.86') || shExpMatch(host, '10.143.165.251')) { return 'PROXY 192.168.129.162:8443'; } if (shExpMatch(host, '10.127.192.208') || shExpMatch(host, '10.127.192.32') || shExpMatch(host, '10.127.23.30') || shExpMatch(host, '10.127.31.73') || shExpMatch(host, '10.254.105.138') || shExpMatch(host, '10.254.110.17') || shExpMatch(host, '10.254.110.18') || shExpMatch(host, '10.254.11.28') || shExpMatch(host, '10.254.113.161') || shExpMatch(host, '10.254.113.167') || shExpMatch(host, '10.254.119.1') || shExpMatch(host, '10.254.119.5') || shExpMatch(host, '10.254.120.94') || shExpMatch(host, '10.254.12.117') || shExpMatch(host, '10.254.12.122') || shExpMatch(host, '10.254.22.200') || shExpMatch(host, '10.254.227.200') || shExpMatch(host, '10.254.24.10') || shExpMatch(host, '10.254.27.143') || shExpMatch(host, '10.254.27.33') || shExpMatch(host, '10.254.30.148') || shExpMatch(host, '10.254.34.10') || shExpMatch(host, '10.254.34.9') || shExpMatch(host, '10.254.38.225') || shExpMatch(host, '10.254.40.64') || shExpMatch(host, '10.254.40.68') || shExpMatch(host, '10.254.47.36') || shExpMatch(host, '10.254.47.45') || shExpMatch(host, '10.254.50.1') || shExpMatch(host, '10.254.54.129') || shExpMatch(host, '10.254.54.130') || shExpMatch(host, '10.254.54.133') || shExpMatch(host, '10.254.58.177') || shExpMatch(host, '10.254.62.148') || shExpMatch(host, '10.254.67.224') || shExpMatch(host, '10.254.67.252') || shExpMatch(host, '10.254.6.96') || shExpMatch(host, '10.254.6.98') || shExpMatch(host, '10.254.70.193') || shExpMatch(host, '10.254.70.194') || shExpMatch(host, '10.254.72.219') || shExpMatch(host, '10.254.72.220') || shExpMatch(host, '10.254.78.208') || shExpMatch(host, '10.254.81.10') || shExpMatch(host, '10.254.81.129') || shExpMatch(host, '10.254.85.251') || shExpMatch(host, '10.254.91.128') || shExpMatch(host, '10.254.91.132') || shExpMatch(host, '10.254.93.166') || shExpMatch(host, '10.254.97.80') || shExpMatch(host, '10.254.97.84') || shExpMatch(host, '10.37.62.232') || shExpMatch(host, '10.37.62.235') || shExpMatch(host, '10.37.62.68')) { return 'PROXY 10.141.248.54:8443'; } if(url.substring(0,5) == 'http:') { return 'DIRECT'; } else if(url.substring(0,6) == 'https:') { return 'DIRECT'; } else if(url.substring(0,7) == 'gopher:') { return 'DIRECT'; } else if(url.substring(0,4) == 'ftp:') { return 'DIRECT'; } else { return 'DIRECT'; } }