Browse Source

2024-12-24 - Ensure that $PDNS_Url has no trailing slash ('/').

pull/6171/head
Andrew V 1 day ago
parent
commit
b6b1b16993
  1. 3
      dnsapi/dns_pdns.sh

3
dnsapi/dns_pdns.sh

@ -50,6 +50,9 @@ dns_pdns_add() {
PDNS_Ttl="$DEFAULT_PDNS_TTL"
fi
# ensure PDNS_Url has no trailing slash ('/')
PDNS_Url="${PDNS_Url%/}"
#save the api addr and key to the account conf file.
_saveaccountconf_mutable PDNS_Url "$PDNS_Url"
_saveaccountconf_mutable PDNS_ServerId "$PDNS_ServerId"

Loading…
Cancel
Save