You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
372 B
Python
14 lines
372 B
Python
5 years ago
|
import main
|
||
|
|
||
2 years ago
|
|
||
5 years ago
|
def getRelay(num):
|
||
|
host = main.config["Relay"]["Host"].replace("x", str(num))
|
||
4 years ago
|
port = int(str(main.config["Relay"]["Port"]).replace("x", str(num).zfill(2)))
|
||
2 years ago
|
# user = main.config["Relay"]["User"]
|
||
|
# password = main.config["Relay"]["Password"]
|
||
5 years ago
|
try:
|
||
|
port = int(port)
|
||
|
except ValueError:
|
||
|
return False
|
||
5 years ago
|
return (host, port)
|