Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var DIRECT = "DIRECT";
- var PROXY_L1 = "PROXY ВСТАВЬ_HTTP_PROXY_СЮДА";
- var PROXY_L3 = "PROXY ВСТАВЬ_HTTP_PROXY_СЮДА"; //
- var PROXY_S4_2CH = "SOCKS ВСТАВЬ_SOCKS_PROXY_СЮДА"; //
- function FindProxyForURL(url, host) {
- // our local URLs from the domains below example.com don't need a proxy:
- if (shExpMatch(host, "2ch.hk")) {
- return PROXY_S4_2CH;
- }
- // All other requests go through port 8080 of proxy.example.com.
- // should that fail to respond, go directly to the WWW:
- return DIRECT;
- }
Add Comment
Please, Sign In to add comment