Explorar o código

clientareafunctions

andre %!s(int64=3) %!d(string=hai) anos
pai
achega
d3171a48a9
Modificáronse 1 ficheiros con 9 adicións e 3 borrados
  1. 9 3
      cwp7.php

+ 9 - 3
cwp7.php

@@ -346,8 +346,14 @@ function cwp7CheckDNS($domain, $serverIP) {
 		'debug',
 		$result
 	);
-
-	if($domainA[0]->address == $serverIP){
-		return true;
+	if($domainA[0]->type == 'CNAME') {
+		if(cwp7CheckDNS($domainA[0]->cname, $serverIP)) {
+			return true;
+		}
+	}
+	if($domainA[0]->type == 'A') {
+		if($domainA[0]->address == $serverIP){
+			return true;
+		}
 	}
 }