mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-31 05:37:59 +01:00
Merge pull request #5998 from 3D-I/ticket/16508
[ticket/16508] Fix WhoIs lookup
This commit is contained in:
commit
de834b65e8
@ -1470,13 +1470,11 @@ function user_ipwhois($ip)
|
||||
|
||||
$ipwhois = '';
|
||||
|
||||
// Limit the query to all possible flags (whois.arin.net)
|
||||
$ip = 'z ' . $ip;
|
||||
|
||||
if (($fsk = @fsockopen($whois_host, 43)))
|
||||
{
|
||||
// CRLF as per RFC3912
|
||||
fputs($fsk, "$ip\r\n");
|
||||
// Z to limit the query to all possible flags (whois.arin.net)
|
||||
fputs($fsk, "z $ip\r\n");
|
||||
while (!feof($fsk))
|
||||
{
|
||||
$ipwhois .= fgets($fsk, 1024);
|
||||
|
Loading…
x
Reference in New Issue
Block a user