doctor: add --skip-native-check flag#484
Closed
dolonet wants to merge 1 commit into
Closed
Conversation
This was referenced Apr 29, 2026
When proxy chaining is configured, the native network connectivity check times out for every Telegram DC (~10s × 6 DCs = ~60s) because direct egress is intentionally not used. This flag lets users skip that section of the doctor output. Refs 9seconds#482
23e4f39 to
e897a5f
Compare
Collaborator
Author
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
--skip-native-checkflag tomtg doctorthat skips the Validate native network connectivity section.When proxy chaining is configured (`network.proxies`), the native dialer is intentionally not used to reach Telegram DCs, so this section currently times out for every DC — roughly 10s × 6 DCs = ~60s of dead air before the rest of the doctor output continues.
The check is still useful by default (it confirms the host can reach Telegram directly when no proxy is configured), so the behavior is opt-in.
Sample output with the flag set:
```
Validate native network connectivity
⏭ Skipped (--skip-native-check)
Validate network connectivity with proxy ...
✅ DC 1
...
```
Scope is intentionally narrow — only `checkNetwork(base)` is gated. `checkFrontingDomain` also uses the native dialer, but it is conceptually distinct (it tests whether the proxy host itself can reach the fronting domain, which is still meaningful under chain-mode), so it is left untouched.
Closes #482.
Test plan