fix dns_namesilo.sh _sub_domain error (fixed: #2441)

This commit is contained in:
Sky Chen 2019-08-14 10:14:24 +08:00 committed by GitHub
parent a3361806ab
commit c41b95a138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ _get_root() {
return 1 return 1
fi fi
if _contains "$response" "$host"; then if _contains "$response" "<domain>$host"; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p) _sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
_domain="$host" _domain="$host"
return 0 return 0