Use zero-padded numbers to maximise usuable ports

This commit is contained in:
Mark Veidemanis 2020-10-31 00:13:59 +00:00
parent e403852778
commit bdb3d059e3
1 changed files with 1 additions and 1 deletions

View File

@ -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: