Commit f47e366
fix(mtproto): bump FakeTLS tolerance to 30s — 3 s default rejects real clients
Production deploy surfaced every Telegram-client attempt being refused
with:
"cannot read client hello"
error="timestamp \"2026-04-22 21:50:20 +0000 UTC\" is too old 3.038756662s"
mtg's DefaultTolerateTimeSkewness is 3 seconds. Normal network latency
plus a sub-second clock skew between the client and the proxy exceeds
that. Telegram's own reference configuration example recommends 5 s;
mtg docs show deployments commonly running at 30 s+. Set 30 s here so
real-world clients are actually accepted.
This is the root cause of "proxy not available" reported by the admin
after the v0.12.0 rollout; the dispatcher + secret + DC connectivity
all check out.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6871dd6 commit f47e366
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
145 | 151 | | |
146 | 152 | | |
147 | 153 | | |
| |||
0 commit comments