update
This commit is contained in:
@@ -7,12 +7,12 @@ use support\Request;
|
||||
|
||||
class Index
|
||||
{
|
||||
public function index(Request $request)
|
||||
public function index(Request $request, $checkIp = null)
|
||||
{
|
||||
$ip = $request->getRealIp();
|
||||
|
||||
if ($check = $request->get('ip')) {
|
||||
$ip = gethostbyname($check);
|
||||
if ($checkIp) {
|
||||
$ip = gethostbyname($checkIp);
|
||||
}
|
||||
|
||||
$filepath = '/usr/src/myapp/lib/qqwry.dat';
|
||||
|
||||
Reference in New Issue
Block a user