From dd00f03715be5a4395f8e6dc4ed516421c21a427 Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Fri, 19 Jun 2026 12:33:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(shell):=20=E6=B7=BB=E5=8A=A0=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E5=87=BA=E5=8F=A3IP=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/proxy.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/shell/proxy.sh b/shell/proxy.sh index b7be038..239708b 100644 --- a/shell/proxy.sh +++ b/shell/proxy.sh @@ -97,7 +97,11 @@ function proxy_test() { fi fi - # 3. 显示当前出口 IP(直连,便于与走代理后的 IP 对比) - echo -n "当前出口 IP: " + # 3. 显示当前出口 IP(直连) + echo -n "直连出口 IP: " curl -w "\n" --max-time 5 myip.ipip.net 2>/dev/null || echo "获取失败" + + # 4. 显示代理出口 IP(走代理) + echo -n "代理出口 IP: " + curl -w "\n" --max-time 8 -x "${HTTP_PROXY_URL}" myip.ipip.net 2>/dev/null || echo "获取失败" }