From 854aaa1f2453e46ce42e6da199f8f58b9180416d Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Mon, 19 Aug 2019 04:57:48 +0500 Subject: [PATCH] add flush on print --- mtprotoproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 7d48130..851134e 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -1746,7 +1746,7 @@ def print_tg_info(): msg = "The default secret {} is used, this is not recommended".format(secret) print(msg, flush=True) random_secret = "".join(random.choice("0123456789abcdef") for i in range(32)) - print("You can use this random secret instead:", random_secret) + print("You can use this random secret instead:", random_secret, flush=True) print_default_warning = True if config.TLS_DOMAIN == "www.google.com":