Skip to content

mtg doctor CLI command#397

Merged
9seconds merged 5 commits intomasterfrom
doctor
Mar 23, 2026
Merged

mtg doctor CLI command#397
9seconds merged 5 commits intomasterfrom
doctor

Conversation

@9seconds
Copy link
Owner

@9seconds 9seconds commented Mar 23, 2026

This fixes #351

This PR adds a new CLI command, mtg doctor that validates that everything works as expected. You need to give it a config file, and it will print you a good overview of potential issues with proxy.

$ mtg doctor /etc/mtg.toml 
Deprecated options
  ✅ All good
Time skewness
  ✅ Time drift is -607.048µs, but tolerate-time-skewness is 5s
Validate native network connectivity
  ✅ DC 1
  ✅ DC 2
  ✅ DC 3
  ✅ DC 4
  ✅ DC 5
  ✅ DC 203
Validate network connectivity with proxy socks5://127.0.0.1:1080
  ✅ DC 1
  ✅ DC 2
  ✅ DC 3
  ✅ DC 4
  ✅ DC 5
  ✅ DC 203
Validate fronting domain connectivity
  ✅ xx.xx.xx.xx:yyy is reachable
Validate SNI-DNS match
  ✅ IP address xx.xx.xx.xx matches secret hostname <REDACTED>

@9seconds 9seconds marked this pull request as ready for review March 23, 2026 18:21
@9seconds 9seconds merged commit fb390d3 into master Mar 23, 2026
8 checks passed
@9seconds 9seconds deleted the doctor branch March 23, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

как понять это телега сломала что-то со своей стороны или проблемы у меня

1 participant