mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
debug: show client ip of bad requests
This commit is contained in:
parent
460574c555
commit
777f39314c
1 changed files with 4 additions and 2 deletions
|
@ -304,9 +304,11 @@ class CWebApplication extends CApplication
|
||||||
$controller->run($actionID);
|
$controller->run($actionID);
|
||||||
$this->_controller=$oldController;
|
$this->_controller=$oldController;
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
throw new CHttpException(404,Yii::t('yii','CWebApp: Unable to resolve the request "{route}".',
|
$client_ip = arraySafeVal($_SERVER,'REMOTE_ADDR');
|
||||||
|
throw new CHttpException(404, $client_ip.': '.Yii::t('yii','CWebApp: Unable to resolve the request "{route}".',
|
||||||
array('{route}'=>$route===''?$this->defaultController:$route)));
|
array('{route}'=>$route===''?$this->defaultController:$route)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue