Fixed switch in getIpForDomain()
Fixed switch in getIpForDomain()
This commit is contained in:
parent
db9c82f9db
commit
38fe21bbef
|
@ -309,6 +309,7 @@ class ApiController extends Controller
|
||||||
if (isset($data['0']['ip'])) {
|
if (isset($data['0']['ip'])) {
|
||||||
return response(array('ip' => $data['0']['ip']), 200);
|
return response(array('ip' => $data['0']['ip']), 200);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case "AAAA":
|
case "AAAA":
|
||||||
$data = dns_get_record($domainname, DNS_AAAA);
|
$data = dns_get_record($domainname, DNS_AAAA);
|
||||||
if (isset($data['0']['ipv6'])) {
|
if (isset($data['0']['ipv6'])) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user