From e81c3535c30e036cb23230658ce3d856592331ff Mon Sep 17 00:00:00 2001 From: "Foster \"Forst\" Snowhill" Date: Mon, 28 May 2018 21:43:28 +0300 Subject: [PATCH] Fix encoding of IPv6 addresses, make colon safe --- mtprotoproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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():