Guest User

Сопля здесь?

a guest
Mar 10th, 2021
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var DIRECT = "DIRECT";
  2.  
  3. var PROXY_L1 = "PROXY ВСТАВЬ_HTTP_PROXY_СЮДА";
  4. var PROXY_L3 = "PROXY ВСТАВЬ_HTTP_PROXY_СЮДА"; //
  5. var PROXY_S4_2CH = "SOCKS ВСТАВЬ_SOCKS_PROXY_СЮДА"; //
  6.  
  7. function FindProxyForURL(url, host) {
  8.   // our local URLs from the domains below example.com don't need a proxy:
  9.  
  10.   if (shExpMatch(host, "2ch.hk")) {
  11.     return PROXY_S4_2CH;
  12.   }
  13.  
  14.  
  15.   // All other requests go through port 8080 of proxy.example.com.
  16.   // should that fail to respond, go directly to the WWW:
  17.   return DIRECT;
  18. }
Add Comment
Please, Sign In to add comment