diff --git a/lib/asn.php b/lib/asn.php index 5bfa492..b4a80ea 100644 --- a/lib/asn.php +++ b/lib/asn.php @@ -26,7 +26,7 @@ function check_asn($ip, $asns, $whois_server, $port){ $response = explode(" | ", $response[1]); foreach ($asns as $asn){ - if ($asn == $response[0]){ + if ($asn == trim($response[0])){ return true; } }