From 4f20a0ec87ed0e176d3b92534c9e0c197216a6ba Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 7 Mar 2025 14:57:39 +1100 Subject: [PATCH] fix: Use correct varo for linking --- hnslinks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}"})