From eaeb4b72c26dd148d7577e3b8a1f55efc8cd36ca Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 31 Oct 2020 00:13:59 +0000 Subject: [PATCH] Use zero-padded numbers to maximise usuable ports --- utils/get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/get.py b/utils/get.py index 46e9edf..6843479 100644 --- a/utils/get.py +++ b/utils/get.py @@ -2,7 +2,7 @@ import main def getRelay(num): host = main.config["Relay"]["Host"].replace("x", str(num)) - port = int(str(main.config["Relay"]["Port"]).replace("x", str(num))) + port = int(str(main.config["Relay"]["Port"]).replace("x", str(num).zfill(2))) user = main.config["Relay"]["User"] password = main.config["Relay"]["Password"] try: