Use zero-padded numbers to maximise usuable ports
This commit is contained in:
parent
388cd1e4b9
commit
eaeb4b72c2
|
@ -2,7 +2,7 @@ import main
|
||||||
|
|
||||||
def getRelay(num):
|
def getRelay(num):
|
||||||
host = main.config["Relay"]["Host"].replace("x", str(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"]
|
user = main.config["Relay"]["User"]
|
||||||
password = main.config["Relay"]["Password"]
|
password = main.config["Relay"]["Password"]
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue