From 00f87d955bbd83b0ad92811b5af25c86a4701e8f Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Wed, 30 May 2018 20:42:14 +0500 Subject: [PATCH] fix buffer flushing --- mtprotoproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 84b4d35..95352b7 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -243,7 +243,7 @@ def print_tg_info(): "server": my_ip, "port": PORT, "secret": secret } params_encodeded = urllib.parse.urlencode(params, safe=':') - print("{}: tg://proxy?{}".format(user, params_encodeded, flush=True)) + print("{}: tg://proxy?{}".format(user, params_encodeded), flush=True) def main():