Skip to content

Make auto updating optional#344

Merged
9seconds merged 1 commit intomasterfrom
blocked-telegram
Feb 26, 2026
Merged

Make auto updating optional#344
9seconds merged 1 commit intomasterfrom
blocked-telegram

Conversation

@9seconds
Copy link
Copy Markdown
Owner

This fixes #343 and #340

Apparently, sometimes DNS requests via DoH is not a remedy because IP itself could be blocked. In that case users could not fetch lists from Telegram and thus DC 203 will be absent again. This PR makes autoupdating optional.

A lesson here is that proxy has to carry over all IPs it requires.

There is a new relevant setting:

# If this setting is set, then mtg will try to get proxy updates from Telegram
# Usually this is completely fine to have it disabled, because mtg has a list
# of some core proxies hardcoded.
auto-update = false

Default is disabled.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.44%. Comparing base (9c122f9) to head (189dce0).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
mtglib/proxy.go 0.00% 2 Missing and 1 partial ⚠️
internal/cli/run_proxy.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #344      +/-   ##
==========================================
- Coverage   68.86%   68.44%   -0.42%     
==========================================
  Files          81       81              
  Lines        2746     2748       +2     
==========================================
- Hits         1891     1881      -10     
- Misses        749      760      +11     
- Partials      106      107       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@9seconds 9seconds merged commit 6feef02 into master Feb 26, 2026
9 of 12 checks passed
@9seconds 9seconds deleted the blocked-telegram branch February 26, 2026 12:46
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.

Не работает v2.1.11

2 participants