forked from NgoHuy/My-Project-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxy.pac
More file actions
26 lines (26 loc) · 710 Bytes
/
proxy.pac
File metadata and controls
26 lines (26 loc) · 710 Bytes
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
function FindProxyForURL(url, host) {
// Your proxy server name and port
var torsock = 'SOCKS 127.0.0.1:9050';
//
// Here's a list of hosts to connect via the PROXY server
//
var proxylist = new Array(
"daa.uit.edu.vn",
"forum.uit.edu.vn",
"www.cyberciti.biz",
"mail.google.com",
"github.com",
"www.google.com",
"www.google.com.vn",
"www.hvaonline.net",
"www.thegeekstuff.com"
);
// Return our proxy name for matched domains/hosts
for(var i=0; i<proxylist.length; i++) {
var value = proxylist[i];
if ( localHostOrDomainIs(host, value) ) {
return "DIRECT";
}
}
return torsock;
}