diff --git a/hnslinks.py b/hnslinks.py index 041ee13..f377a93 100644 --- a/hnslinks.py +++ b/hnslinks.py @@ -223,13 +223,13 @@ def hnslinks(params, authentication): tlsa = response["TLSA"] # Get zones from varo - with open("user_data/varo.json", "r") as f: + with open("user_data/hnslinks.json", "r") as f: auth = json.load(f) if not auth: return {"status": "Missing Varo API or instance"} - if 'api' not in auth or 'instance' not in auth: + if 'key' not in auth or 'instance' not in auth: return {"status": "Missing Varo API or instance"} - api = auth["api"] + api = auth["key"] instance = auth["instance"] response = requests.post(f"https://{instance}/api", json={"action":"getZones"}, headers={"Authorization": f"Bearer {api}"})