-
Notifications
You must be signed in to change notification settings - Fork 0
/
vs.pac
26 lines (26 loc) · 1.34 KB
/
vs.pac
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
/**
* Proxy domains by regex
*
* Chrome install
* Install 'Proxy Helper' using a chrome browser by going to https://chrome.google.com/webstore/detail/proxy-helper/mnloefcpaepkpmhaoipjkpikbnkmbnic
* After install right click the blue icon, on the right of the browser url, and open options.
* At: PAC PATH: http:// <domainname-that-hosts-pac-file>/vs.pac
*
* firefox install
* Install 'foxyproxy basic' using a firefox browser by going to https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-basic/
* After install open the options and select the Default proxy and click 'Edit Selection'. Select tab 'Proxy Details' and select Automatic Proxy Configuration by PAC'
* Enter the url: http://<domainname-that-hosts-pac-file>/vs.pac and click OK
* @link http://findproxyforurl.com/pac-functions/
* @link http://findproxyforurl.com/example-pac-file/
*/
function FindProxyForURL(url, host){
if(shExpMatch(host, "test2*")) {
//if (shExpMatch(url, "https:**")) {
// Do proxy
//return "PROXY 1.1.1.65:8080";
// http://dev.chromium.org/developers/design-documents/secure-web-proxy
//return "HTTPS test2.videoslots.com";
return "HTTPS ru.videoslots.com:1443"; // generate ERR_TUNNEL_CONNECTION_FAILED
//return "HTTPS 217.174.248.203:1443"; // generate ERR_PROXY_CERTIFICATE_INVALID because of ip string
}
}