summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason D. McCormick <jason@mfamily.org>2022-11-26 13:54:35 -0500
committerJason D. McCormick <jason@mfamily.org>2022-11-26 13:54:35 -0500
commit1dac29e7416dfc9490dbc435fadfc8188c2279e3 (patch)
treec82a473d690e0568d0b7ae79e8b67dbcd1cc7b7a
parent187a6be04a7d7a87248e74a756a1611299a27d4a (diff)
implement --key
-rwxr-xr-xhe-dyndns6
1 files changed, 5 insertions, 1 deletions
diff --git a/he-dyndns b/he-dyndns
index 443e76e..bec3b60 100755
--- a/he-dyndns
+++ b/he-dyndns
@@ -101,7 +101,11 @@ def main():
try:
- apikey = getKey(keyfile, args.record)
+ if args.key:
+ log.debug("--key override; ignore --kefile")
+ apikey = args.key
+ else:
+ apikey = getKey(keyfile, args.record)
if args.v6:
ans = dns.resolver.resolve(HE_DNS_API_HOST, "AAAA")[0]