mirror of
https://github.com/alexbers/mtprotoproxy.git
synced 2026-03-14 07:13:09 +00:00
use tls-only mode in the default config
This commit is contained in:
@@ -12,7 +12,7 @@ SECURE_ONLY = True
|
|||||||
|
|
||||||
# Makes the proxy even more hard to detect
|
# Makes the proxy even more hard to detect
|
||||||
# Compatible only with the recent clients
|
# Compatible only with the recent clients
|
||||||
# TLS_ONLY = True
|
TLS_ONLY = True
|
||||||
|
|
||||||
# The domain for TLS, bad clients are proxied there
|
# The domain for TLS, bad clients are proxied there
|
||||||
# Use random existing domain, proxy checks it on start
|
# Use random existing domain, proxy checks it on start
|
||||||
|
|||||||
@@ -1999,7 +1999,7 @@ def print_tg_info():
|
|||||||
params_encodeded = urllib.parse.urlencode(params, safe=':')
|
params_encodeded = urllib.parse.urlencode(params, safe=':')
|
||||||
tls_link = "tg://proxy?{}".format(params_encodeded)
|
tls_link = "tg://proxy?{}".format(params_encodeded)
|
||||||
proxy_links.append({"user": user, "link": tls_link})
|
proxy_links.append({"user": user, "link": tls_link})
|
||||||
print("{}: {} (new)".format(user, tls_link), flush=True)
|
print("{}: {}".format(user, tls_link), flush=True)
|
||||||
|
|
||||||
if secret in ["00000000000000000000000000000000", "0123456789abcdef0123456789abcdef"]:
|
if secret in ["00000000000000000000000000000000", "0123456789abcdef0123456789abcdef"]:
|
||||||
msg = "The default secret {} is used, this is not recommended".format(secret)
|
msg = "The default secret {} is used, this is not recommended".format(secret)
|
||||||
|
|||||||
Reference in New Issue
Block a user