Update dns_hostup.sh

bug fix Omnios fial
This commit is contained in:
hostup
2025-12-01 15:48:48 +01:00
committed by GitHub
parent 671d542898
commit b8e394e76a

View File

@@ -182,9 +182,10 @@ _hostup_detect_zone() {
return 0 return 0
fi fi
if ! printf "%s" "$_domain_candidate" | _contains "."; then case "$_domain_candidate" in
break *.*) ;;
fi *) break ;;
esac
_domain_candidate="${_domain_candidate#*.}" _domain_candidate="${_domain_candidate#*.}"
done done