From 0fe7ba406ed85cbdfd4b89d67cc7fcc94520d87c Mon Sep 17 00:00:00 2001 From: "Foster \"Forst\" Snowhill" Date: Tue, 29 May 2018 16:33:50 +0300 Subject: [PATCH] Make proxy link order consistent, sort by username --- mtprotoproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 1457a6d..9d4a59e 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -234,7 +234,7 @@ def print_tg_info(): except: my_ip = 'YOUR_IP' - for user, secret in USERS.items(): + for user, secret in sorted(USERS.items(), key=lambda x: x[0]): params = { "server": my_ip, "port": PORT, "secret": secret }