master: Fixed private ip reference
Some checks failed
Build Docker / Build Master (push) Successful in 40s
Build Docker / Build Bot (push) Failing after 17m41s

This commit is contained in:
Nathan Woodburn 2023-09-16 17:10:20 +10:00
parent d0ff839ff4
commit d19a121005
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -251,7 +251,7 @@ def site_status_human():
# Get worker ip
ip = workerIP_PRIV(worker)
# Get TLSA record
# Get TLSA record
resp=requests.get("http://"+ip + ":5000/tlsa?domain=" + domain,timeout=2)
json = resp.json()
publicIP = workerIP(worker)
@ -401,7 +401,7 @@ def workerIP_PRIV(worker):
ip = None
for line in workers_file.readlines():
if worker == line.split(':')[0]:
ip = line.split(':')[2].strip('\n')
ip = line.split(':')[1].strip('\n')
break
workers_file.close()
@ -419,7 +419,7 @@ def workerIP(worker):
ip = None
for line in workers_file.readlines():
if worker == line.split(':')[0]:
ip = line.split(':')[1].strip('\n')
ip = line.split(':')[2].strip('\n')
break
workers_file.close()