diff --git a/.github/workflows/BBB.yml b/.github/workflows/BBB.yml index 1c9efad..95390f1 100644 --- a/.github/workflows/BBB.yml +++ b/.github/workflows/BBB.yml @@ -58,7 +58,7 @@ jobs: # 使用 curl 检查 IP 地址, 如果请求失败则输出提示信息,提示可能是因为没有代理 curl -s https://httpbin.org/ip || echo "Request failed, likely due to no proxy." - # 2. 使用代理的步骤 + # 2. 使用代理的步骤 - name: 🌐 Step with Proxy env: ALL_PROXY: "socks5://127.0.0.1:1080" @@ -66,5 +66,5 @@ jobs: https_proxy: "socks5://127.0.0.1:1080" run: | echo "Checking IP with proxy:" - # 使用 curl 检查 IP 地址, 如果请求失败则输出提示信息,提示可能是因为代理配置有误 - curl -s https://httpbin.org/ip || echo "Request failed, even with proxy." \ No newline at end of file + # 使用 --socks5 明确指定代理模式 + curl --socks5 127.0.0.1:1080 -s https://httpbin.org/ip || echo "Request failed, even with proxy."