This commit is contained in:
Julio Cesar Laura Avendaño
2016-10-24 11:32:23 -04:00
parent 13d3ab8d8b
commit 763e688480

View File

@@ -269,7 +269,10 @@ class license_application extends padl
$ips[$ip] = $ip;
}
}
# count return ips and return if found
if (count($ips) > 0) {
return $ips;
}
if (isset($this->_SERVER_VARS['SERVER_ADDR'])) {
$name = gethostbyaddr($this->_SERVER_VARS['SERVER_ADDR']);
$ip = gethostbyname($name);