Skip to content

Commit

Permalink
correctly ascertain base domain using regex
Browse files Browse the repository at this point in the history
  • Loading branch information
markmyt committed Jul 9, 2022
1 parent 4a89f4d commit ac57eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/apps/networking/cloudflare-ddns/cloudflare-ddns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -o errexit

current_ipv4="$(curl -s https://ipv4.icanhazip.com/)"
zone_id=$(curl -s -X GET \
"https://api.cloudflare.com/client/v4/zones?name=${CLOUDFLARE_RECORD_NAME#*.}&status=active" \
"https://api.cloudflare.com/client/v4/zones?name=${CLOUDFLARE_RECORD_NAME#*.*.}&status=active" \
-H "X-Auth-Email: ${CLOUDFLARE_EMAIL}" \
-H "X-Auth-Key: ${CLOUDFLARE_APIKEY}" \
-H "Content-Type: application/json" \
Expand Down

0 comments on commit ac57eac

Please sign in to comment.