ZaStoGram_desktop/Telegram/SourceFiles/zsg_naive
Repository files (latest commit first)
Filename Latest commit message Latest commit date
loop-uh 755fe43c87 Check connection: a path test that runs the real client code and writes one log
Desktop twin of the Android module (zsg_pathtest). For every proxy of the list, the official WSS route and two
control hosts it makes 12 attempts 1.5 s apart through the real client code and writes one log,
tdata/pathtest/path-test-YYYYMMDD-HHMMSS.txt with a JSONL twin: per-attempt lines (server_hello, alert, rst, fin,
silent, connect_failed with time to first byte, DNS and TCP times), a summary table and a plain verdict per host and
profile. Same format and same ep-<8 hex> host ids as Android (golden files from the Java implementation are
reproduced byte for byte by tests/run_pathtest_core_test.sh).

The probe is not a second client: WssClientConfig and Zsg::Naive::NaiveClientConfig are now the single builders of the
zsgnaive config for both the real sockets and the probe, and FakeTLS profiles go through PrepareClientHelloRules +
PrepareClientHello, the calls TlsSocket::sendClientHello makes. Secrets are never read (random FakeTLS key, throw-away
Naive credentials, only the cover domain of a secret); every log field is a closed-vocabulary token.

UI: a section in the proxy box, an offer once in 30 minutes when the retry link appears. Guards: test_zsg_pathtest.py,
test_proxy_wss_default.py updated for the shared config builder.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 12:37:16 +00:00
..
zsg_naive_api.cpp Check connection: a path test that runs the real client code and writes one log 2026-11-29 12:37:16 +00:00
zsg_naive_api.h Check connection: a path test that runs the real client code and writes one log 2026-11-29 12:37:16 +00:00
zsg_naive_links.cpp Naive: ссылки naive+https://user:pass@host:port#имя кликабельны и добавляют прокси 2026-11-27 07:00:09 -05:00
zsg_naive_links.h Naive: ссылки naive+https://user:pass@host:port#имя кликабельны и добавляют прокси 2026-11-27 07:00:09 -05:00
zsg_naive_socket.cpp Check connection: a path test that runs the real client code and writes one log 2026-11-29 12:37:16 +00:00
zsg_naive_socket.h Check connection: a path test that runs the real client code and writes one log 2026-11-29 12:37:16 +00:00
zsg_warp.cpp zsg: WARP endpoint scanner (core f84e911): starts after 3 s of silence, remembers the last working edges, scan button and status in the proxy box; wss_session line now carries the handshake phase and the last error 2026-11-28 17:19:21 -05:00
zsg_warp.h zsg: WARP endpoint scanner (core f84e911): starts after 3 s of silence, remembers the last working edges, scan button and status in the proxy box; wss_session line now carries the handshake phase and the last error 2026-11-28 17:19:21 -05:00