Permalink
Browse files

修正用户ip获取错误的bug

  • Loading branch information...
intellecat committed Dec 12, 2013
1 parent 23872fe commit 363a9e5f8fb1d62376f44e12988d08ca75225f79
Showing with 1 addition and 0 deletions.
  1. +1 −0 library/core/class.request.php
@@ -344,6 +344,7 @@ protected function _LoadEnvironment() {
$this->RequestHost( isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? GetValue('HTTP_X_FORWARDED_HOST',$_SERVER) : (isset($_SERVER['HTTP_HOST']) ? GetValue('HTTP_HOST',$_SERVER) : GetValue('SERVER_NAME',$_SERVER)));
$this->RequestMethod( isset($_SERVER['REQUEST_METHOD']) ? GetValue('REQUEST_METHOD',$_SERVER) : 'CONSOLE');
$this->WithArgs(Gdn_Request::INPUT_SERVER);
// Request IP
// Loadbalancers

0 comments on commit 363a9e5

Please sign in to comment.