Browse Source
Update dns_hostup.sh
bug fix Omnios fial
pull/6655/head
hostup
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
3 deletions
-
dnsapi/dns_hostup.sh
|
|
|
@ -182,9 +182,10 @@ _hostup_detect_zone() { |
|
|
|
return 0 |
|
|
|
fi |
|
|
|
|
|
|
|
if ! printf "%s" "$_domain_candidate" | _contains "."; then |
|
|
|
break |
|
|
|
fi |
|
|
|
case "$_domain_candidate" in |
|
|
|
*.*) ;; |
|
|
|
*) break ;; |
|
|
|
esac |
|
|
|
|
|
|
|
_domain_candidate="${_domain_candidate#*.}" |
|
|
|
done |
|
|
|
|