From d19a1210055a342cadf0ef75670fa7f589b7a4ea Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sat, 16 Sep 2023 17:10:20 +1000 Subject: [PATCH] master: Fixed private ip reference --- master/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/master/main.py b/master/main.py index 1c381ed..87368fa 100644 --- a/master/main.py +++ b/master/main.py @@ -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()