Browse Source

Fix issue with similar domain names causing an error in selecting the proper root domain to add challenge records in

pull/4855/head
Matthew Robinson 1 year ago
parent
commit
8454ffa331
  1. 2
      dnsapi/dns_aws.sh

2
dnsapi/dns_aws.sh

@ -157,7 +157,7 @@ _get_root() {
# iterate over names (a.b.c.d -> b.c.d -> c.d -> d) # iterate over names (a.b.c.d -> b.c.d -> c.d -> d)
while true; do while true; do
h=$(printf "%s" "$domain" | cut -d . -f $i-100)
h=$(printf "%s" "$domain" | cut -d . -f $i-100 | sed 's/\./\\./g')
_debug "Checking domain: $h" _debug "Checking domain: $h"
if [ -z "$h" ]; then if [ -z "$h" ]; then
_error "invalid domain" _error "invalid domain"

Loading…
Cancel
Save