1.3 KiB
1.3 KiB
Debug Mode Rules for Telemt
Logging
RUST_LOGenvironment variable takes absolute priority over all config log levels- Log levels:
trace,debug,info,warn,error - Use
RUST_LOG=debug cargo runfor detailed operational logs - Use
RUST_LOG=trace cargo runfor full protocol-level debugging
Middle-End Proxy Debugging
- Set
ME_DIAG=1environment variable for high-precision cryptography diagnostics - STUN probe results are logged at startup - check for mismatch between local and reflected IP
- If Middle-End fails, check
proxy_secret_pathpoints to valid file from https://core.telegram.org/getProxySecret
Connection Issues
- DC connectivity is logged at startup with RTT measurements
- If DC ping fails, check
dc_overridesfor custom addresses - Use
prefer_ipv6=falsein config if IPv6 is unreliable
TLS Fronting Issues
- Invalid handshakes are proxied to
mask_host- check this host is reachable mask_unix_sockandmask_hostare mutually exclusive - only one can be set- If
mask_unix_sockis set, socket must exist before connections arrive
Common Errors
ReplayAttack- client replayed a handshake nonce, potential attackTimeSkew- client clock is off, can disable withignore_time_skew=trueTgHandshakeTimeout- upstream DC connection failed, check network