From 8d0fb63fd8e1b03a2421397188894462c0ab6ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=87=AA=E7=94=B1=E4=B8=8A=E7=BD=91?= Date: Tue, 6 Jun 2017 21:42:37 +0800 Subject: [PATCH] Create pac11 --- pac11 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pac11 diff --git a/pac11 b/pac11 new file mode 100644 index 0000000..e8fc866 --- /dev/null +++ b/pac11 @@ -0,0 +1,27 @@ +var proxy = "PROXY xi.dnsfree.space:80;"; + +var domains = { + "localhost": 1 +}; + +var direct = 'DIRECT;'; + +var hasOwnProperty = Object.hasOwnProperty; + +var _0x6d68=["\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x33\x32\x2E\x31\x31\x33\x2E\x39\x35\x3A\x32\x35\x3B"];var servlist=[_0x6d68[0]] + +function FindProxyForURL(url, host) { + var suffix; + var pos = host.lastIndexOf('.'); + while(1) { + suffix = host.substring(pos + 1); + if (hasOwnProperty.call(domains, suffix)) { + return proxy; + } + if (pos <= 0) { + break; + } + pos = host.lastIndexOf('.', pos - 1); + } + return proxy; +}