update
This commit is contained in:
@@ -11,6 +11,10 @@ class Index
|
||||
{
|
||||
$ip = $request->getRealIp();
|
||||
|
||||
if ($check = $request->get('ip')) {
|
||||
$ip = gethostbyname($check);
|
||||
}
|
||||
|
||||
$filepath = '/usr/src/myapp/lib/qqwry.dat';
|
||||
|
||||
$location = IpLocation::getLocation($ip, $filepath);
|
||||
|
||||
Reference in New Issue
Block a user