use tls-only mode in the default config

This commit is contained in:
Alexander Bersenev
2019-10-08 14:44:09 +05:00
parent 3c4c92cdb2
commit 027ee2713b
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)