Browse Source
Fix pattern matching for best zone selection
pull/6504/head
An | Anton Röhm
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
dnsapi/dns_nanelo.sh
|
|
@ -100,7 +100,7 @@ _get_root() { |
|
|
|
bestzone="" |
|
|
|
for z in $zones; do |
|
|
|
case "$fulldomain" in |
|
|
|
*.$z|$z) |
|
|
|
*."$z"|"$z") |
|
|
|
if [ ${#z} -gt ${#bestzone} ]; then |
|
|
|
bestzone=$z |
|
|
|
fi |
|
|
|