chore-add-network-debug
Some checks failed
CI / build-and-test (push) Failing after 1m38s
CI / deploy (push) Has been skipped

This commit is contained in:
SpecialX
2026-02-25 17:20:42 +08:00
parent 46aa1f5c1e
commit 76176d6da8

View File

@@ -53,6 +53,20 @@ jobs:
echo "Using Proxy: $HTTP_PROXY"
- name: Debug Network
run: |
echo "Testing connection to proxy..."
curl -v http://127.0.0.1:7890 || echo "Failed to connect to 127.0.0.1:7890"
echo "Testing google via proxy..."
curl -I -x http://127.0.0.1:7890 https://www.google.com || echo "Failed to curl google"
echo "Current IP info:"
ip addr || true
echo "Clash port status (if netstat available):"
netstat -an | grep 7890 || true
- name: Show proxy status
run: |
if [ -n "$HTTP_PROXY" ] || [ -n "$http_proxy" ] || [ -n "$HTTPS_PROXY" ] || [ -n "$https_proxy" ]; then echo "proxy=on"; else echo "proxy=off"; fi