diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 74c06e3..1457a6d 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -238,7 +238,7 @@ def print_tg_info(): params = { "server": my_ip, "port": PORT, "secret": secret } - print("{}: tg://proxy?{}".format(user, urllib.parse.urlencode(params)), flush=True) + print("{}: tg://proxy?{}".format(user, urllib.parse.urlencode(params, safe=':')), flush=True) def main():