9seconds 2 месяцев назад
Родитель
Сommit
82679ec20f
1 измененных файлов: 14 добавлений и 0 удалений
  1. 14
    0
      example.config.toml

+ 14
- 0
example.config.toml Просмотреть файл

71
 # Otherwise, chose a new DC.
71
 # Otherwise, chose a new DC.
72
 allow-fallback-on-unknown-dc = false
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
 # network defines different network-related settings
88
 # network defines different network-related settings
75
 [network]
89
 [network]
76
 # please be aware that mtg needs to do some external requests. For
90
 # please be aware that mtg needs to do some external requests. For

Загрузка…
Отмена
Сохранить