Skip to content

Commit

Permalink
fix #67
Browse files Browse the repository at this point in the history
  • Loading branch information
Seji64 committed Aug 18, 2024
1 parent c1e7d41 commit 93b3f9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generateACL.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
##!/bin/bash
CLIENTS=()
export DYNDNS_CRON_ENABLED=false

Expand All @@ -10,7 +10,7 @@ function read_acl () {
if [ $retVal -eq 0 ]; then
CLIENTS+=( "${i}" )
else
RESOLVE_RESULT=$(/usr/bin/dog --json "${i}" | jq -r '.responses[].answers[1].address')
RESOLVE_RESULT=$(/usr/bin/dog --json "${i}" | jq -r '.responses[].answers | map(select(.type == "A")) | first | .address')
retVal=$?
if [ $retVal -eq 0 ]; then
export DYNDNS_CRON_ENABLED=true
Expand Down

0 comments on commit 93b3f9f

Please sign in to comment.