2019-08-25 20:29:11 +00:00
|
|
|
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)))
|
|
|
|
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)
|