-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxy.pac
More file actions
34 lines (23 loc) · 759 Bytes
/
Copy pathproxy.pac
File metadata and controls
34 lines (23 loc) · 759 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
27
28
29
30
31
32
33
34
function FindProxyForURL(url, host) {
// proxy list
var PROXY="SOCKS5 127.0.0.1:1337"
// If the hostname matches, send direct.
if (
// shExpMatch(host, "(*.maps.yandex.ru|maps.yandex.ru)") ||
// shExpMatch(host, "(*.ya.ru|ya.ru)") ||
shExpMatch(host, "(*.local)")
)
return PROXY;
// proxy list
// "SOCKS 172.17.0.1:2033"; // proxy1
// "SOCKS 172.17.2.1:2033"; // proxy2
// "SOCKS 172.17.1.1:2033"; // proxy3
var PROXY2="SOCKS 127.0.0.1:1337"
if (
shExpMatch(host, "(*.2ip.ru|2ip.ru)")
// || shExpMatch(host, "(*.avito.ru)")
) return PROXY2;
// shExpMatch(host, "(*esia.gosuslugi.ru|esia.gosuslugi.ru))")
// DEFAULT RULE: All other traffic, use below proxies, in fail-over order.
return "DIRECT";
}