2019-08-25 20:29:11 +00:00
|
|
|
import main
|
|
|
|
|
2022-07-21 12:39:41 +00:00
|
|
|
|
2019-08-25 20:29:11 +00:00
|
|
|
def getRelay(num):
|
|
|
|
host = main.config["Relay"]["Host"].replace("x", str(num))
|
2020-10-31 00:13:59 +00:00
|
|
|
port = int(str(main.config["Relay"]["Port"]).replace("x", str(num).zfill(2)))
|
2019-08-25 20:29:11 +00:00
|
|
|
user = main.config["Relay"]["User"]
|
|
|
|
password = main.config["Relay"]["Password"]
|
|
|
|
try:
|
|
|
|
port = int(port)
|
|
|
|
except ValueError:
|
|
|
|
return False
|
2019-09-29 21:45:16 +00:00
|
|
|
return (host, port)
|