示例#1
0
文件: Http.php 项目: odan/molengo
 /**
  * Returns true if runing from localhost
  *
  * @return bool
  */
 public function isLocalhost()
 {
     $addr = $this->request->getClientIp();
     // @todo
     $result = isset($addr) && ($addr === '127.0.0.1' || $addr === '::1');
     return $result;
 }