Skip to content
This repository was archived by the owner on Apr 5, 2026. It is now read-only.

Commit e69983a

Browse files
committed
ci: add verbose proxy logging to test-direct-e2e for debugging
Redirect proxy stderr to log files with -v flag and print them after the test step (even on failure) to diagnose why direct-mode connections time out.
1 parent 1a1f269 commit e69983a

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ jobs:
173173
174174
# Obfuscated2 direct-mode proxy (no proxy-secret/proxy-multi.conf needed)
175175
./mtproto-proxy -u nobody -p 8888 -H 8443 -S $SECRET \
176-
--http-stats --direct -M 0 &
176+
--http-stats --direct -M 0 -v 2>obfs2.log &
177177
echo "Started obfs2 direct-mode proxy on port 8443"
178178
179179
# Fake-TLS direct-mode proxy
180180
./mtproto-proxy -u nobody -p 9888 -H 9443 -S $SECRET \
181-
--http-stats --direct -D ya.ru -M 0 &
181+
--http-stats --direct -D ya.ru -M 0 -v 2>faketls.log &
182182
echo "Started fake-TLS direct-mode proxy on port 9443"
183183
184184
# Wait for both proxies to be ready
@@ -206,6 +206,15 @@ jobs:
206206
EE_DOMAIN=ya.ru \
207207
python3 tests/test_direct_e2e.py
208208
209+
- name: Proxy logs (debug)
210+
if: always()
211+
run: |
212+
echo "=== Obfs2 proxy log ==="
213+
cat mtproxy-run/obfs2.log 2>/dev/null || echo "(no log)"
214+
echo ""
215+
echo "=== Fake-TLS proxy log ==="
216+
cat mtproxy-run/faketls.log 2>/dev/null || echo "(no log)"
217+
209218
test-asan:
210219
runs-on: ubuntu-latest
211220
steps:

0 commit comments

Comments
 (0)