From 027ee2713b4ba299e044440832a99ce431ebd276 Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Tue, 8 Oct 2019 14:44:09 +0500 Subject: [PATCH] use tls-only mode in the default config --- config.py | 2 +- mtprotoproxy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 81255af..5c0268d 100644 --- a/config.py +++ b/config.py @@ -12,7 +12,7 @@ SECURE_ONLY = True # Makes the proxy even more hard to detect # Compatible only with the recent clients -# TLS_ONLY = True +TLS_ONLY = True # The domain for TLS, bad clients are proxied there # Use random existing domain, proxy checks it on start diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 44ea72e..75676a3 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -1999,7 +1999,7 @@ def print_tg_info(): params_encodeded = urllib.parse.urlencode(params, safe=':') tls_link = "tg://proxy?{}".format(params_encodeded) 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"]: msg = "The default secret {} is used, this is not recommended".format(secret)