mirror of
https://github.com/getgrav/grav.git
synced 2026-07-07 01:29:26 +02:00
fixed hostname for config overrides
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user