Skip to content

Commit

Permalink
fixed hostname for config overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Nov 14, 2014
1 parent dc28ba5 commit edb102b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/src/Grav/Common/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public function __construct()
$address = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '::1';

// check for localhost variations
if ($address == '::1' || $address == '127.0.0.1') {
if ($name == 'localhost' || $address == '::1' || $address == '127.0.0.1') {
$this->host = 'localhost';
} else {
$this->host = gethostname();
$this->host = $name;
}

$this->base = $base;
Expand Down

0 comments on commit edb102b

Please sign in to comment.