Merge pull request #2662 from tambetliiv/zone-root-check

zone.eu dns api: use different method to get root
This commit is contained in:
neil authored and GitHub committed 2020-01-03 21:44:08 +08:00
commit b2ff9240ac
1 file changed
+2 -2
+2 -2
View File
@@ -136,10 +136,10 @@ _get_root() {
if [ -z "$h" ]; then
return 1
fi
if ! _zone_rest GET "dns/$h/a"; then
if ! _zone_rest GET "dns/$h"; then
return 1
fi
if _contains "$response" "\"name\":\"$h\"" >/dev/null; then
if _contains "$response" "\"identificator\":\"$h\"" >/dev/null; then
_domain=$h
return 0
fi
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.