From 21591a59bb4d917bdb193dbf474a958ed6d84452 Mon Sep 17 00:00:00 2001 From: david082321 Date: Mon, 10 May 2021 17:42:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?v3.0.4=201.=20=E6=B7=BB=E5=8A=A0=20socks5?= =?UTF-8?q?=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.php | 4 ++++ index.php | 15 +++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/config.php b/config.php index 42d5aa1..8ad6ed0 100644 --- a/config.php +++ b/config.php @@ -65,6 +65,10 @@ define('CUSTOM_HOST_SUB', 'https://app.global.bilibili.com'); //泰区 搜索字 // define('CUSTOM_HOST_HK', $hk_api[$hk_sum]); //随机调用HK 启用要注释上方默认api // define('CUSTOM_HOST_TW', $tw_api[$tw_sum]); //随机调用TW 启用要注释上方默认api +// 指定socks5 +define('SOCKS5_PROXY', 0); // 开启功能。0 否, 1 是 +define('SOCKS5_PROXY_IP', "http://127.0.0.1:1234"); // 自行修改地址 + // 指定ip回源 define('IP_RESOLVE', 0); // 开启功能。0 否, 1 是 $ips=array('172.0.0.1','192.168.0.1','1.2.3.4'); diff --git a/index.php b/index.php index a4f6fb0..513dcbd 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@ Date: Sun, 16 May 2021 18:08:01 +0800 Subject: [PATCH 2/2] Support Socks5 --- config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.php b/config.php index 8ad6ed0..37bdb4c 100644 --- a/config.php +++ b/config.php @@ -67,7 +67,7 @@ define('CUSTOM_HOST_SUB', 'https://app.global.bilibili.com'); //泰区 搜索字 // 指定socks5 define('SOCKS5_PROXY', 0); // 开启功能。0 否, 1 是 -define('SOCKS5_PROXY_IP', "http://127.0.0.1:1234"); // 自行修改地址 +define('SOCKS5_PROXY_IP', "127.0.0.1:1234"); // 自行修改地址 // 指定ip回源 define('IP_RESOLVE', 0); // 开启功能。0 否, 1 是