|
|
@@ -49,9 +49,10 @@ concurrency = 8192
|
|
49
|
49
|
prefer-ip = "prefer-ipv6"
|
|
50
|
50
|
|
|
51
|
51
|
# Public IP addresses of this server. Used by 'mtg access' to generate
|
|
52
|
|
-# proxy links and by 'mtg doctor' to validate SNI-DNS match.
|
|
53
|
|
-# If not set, mtg tries to detect them automatically via ifconfig.co.
|
|
54
|
|
-# Set these if ifconfig.co is unreachable from your server.
|
|
|
52
|
+# proxy links and by 'mtg doctor' / proxy startup to validate SNI-DNS match.
|
|
|
53
|
+# If not set, mtg tries to detect them automatically by querying the public
|
|
|
54
|
+# HTTPS endpoints listed in network.public-ip-endpoints (see below).
|
|
|
55
|
+# Set these explicitly if those endpoints are unreachable from your server.
|
|
55
|
56
|
# public-ipv4 = "1.2.3.4"
|
|
56
|
57
|
# public-ipv6 = "2001:db8::1"
|
|
57
|
58
|
|
|
|
@@ -200,6 +201,17 @@ proxies = [
|
|
200
|
201
|
# "socks5://user:password@host:port"
|
|
201
|
202
|
]
|
|
202
|
203
|
|
|
|
204
|
+# HTTPS endpoints used to discover this server's public IPv4/IPv6 when
|
|
|
205
|
+# public-ipv4 / public-ipv6 are not set. Each must return the client's public
|
|
|
206
|
+# IP as a single address in the plain-text response body. mtg tries them in
|
|
|
207
|
+# order and uses the first that succeeds. The default is shown below; setting
|
|
|
208
|
+# this option overrides the default entirely.
|
|
|
209
|
+# public-ip-endpoints = [
|
|
|
210
|
+# "https://ifconfig.co",
|
|
|
211
|
+# "https://icanhazip.com",
|
|
|
212
|
+# "https://ifconfig.me",
|
|
|
213
|
+# ]
|
|
|
214
|
+
|
|
203
|
215
|
# network timeouts define different settings for timeouts. tcp timeout
|
|
204
|
216
|
# define a global timeout on establishing of network connections. idle
|
|
205
|
217
|
# means a timeout on pumping data between sockset when nothing is
|