Kaynağa Gözat

Update config

tags/v2.1.9^2
9seconds 2 ay önce
ebeveyn
işleme
82679ec20f
1 değiştirilmiş dosya ile 14 ekleme ve 0 silme
  1. 14
    0
      example.config.toml

+ 14
- 0
example.config.toml Dosyayı Görüntüle

@@ -71,6 +71,20 @@ tolerate-time-skewness = "5s"
71 71
 # Otherwise, chose a new DC.
72 72
 allow-fallback-on-unknown-dc = false
73 73
 
74
+# Telegram uses different DCs for different purposes. Unfortunately, most of
75
+# DCs are not public, and dependent on a location of the current user, so
76
+# mtg cannot know upfront about all of them, and how to access them. It has
77
+# a default list of DCs, including some CDN IPs, but it is possible that some
78
+# of them are not working for you. In this case, you can override them here.
79
+[[dc-overrides]]
80
+dc = "101"
81
+ips = ["127.0.0.1:443"]
82
+
83
+# mtg periodically updates its list of DCs, fetching them from Telegram itself.
84
+# This is a period of time between updates. Default value is 1h, and usually
85
+# more than enough.
86
+# dc-update-each = "24h"
87
+
74 88
 # network defines different network-related settings
75 89
 [network]
76 90
 # please be aware that mtg needs to do some external requests. For

Loading…
İptal
Kaydet