改进日志记录的ip地址

This commit is contained in:
thinkphp
2017-11-16 17:45:21 +08:00
parent 3fd0d5eb00
commit c661cc7c46
2 changed files with 4 additions and 4 deletions

View File

@@ -1265,7 +1265,7 @@ class Request
* @param boolean $adv 是否进行高级模式获取(有可能被伪装)
* @return mixed
*/
public function ip($type = 0, $adv = false)
public function ip($type = 0, $adv = true)
{
$type = $type ? 1 : 0;
static $ip = null;