From edb102b1ddcdb0c64a3cf1f8a379b1183a96def3 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 13 Nov 2014 21:49:46 -0700 Subject: [PATCH] fixed hostname for config overrides --- system/src/Grav/Common/Uri.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/Uri.php b/system/src/Grav/Common/Uri.php index 4dbdb14d0..5658d335c 100644 --- a/system/src/Grav/Common/Uri.php +++ b/system/src/Grav/Common/Uri.php @@ -55,10 +55,10 @@ class Uri $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;