From e386d589864d3ca346653429caddf24502526dc8 Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Wed, 20 Jul 2011 18:42:50 +0200 Subject: [PATCH] $server_db_isLocal - account for IPv6 loopback address Only the most common form ('::1') is recognized --- server_status.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server_status.php b/server_status.php index 28d6858f41..2bdae6496a 100644 --- a/server_status.php +++ b/server_status.php @@ -557,7 +557,8 @@ $server = 1; if(isset($_REQUEST['server']) && intval($_REQUEST['server'])) $server = intval($_REQUEST['server']); $server_db_isLocal = strtolower($cfg['Servers'][$server]['host']) == 'localhost' - || $cfg['Servers'][$server]['host'] == '127.0.0.1'; + || $cfg['Servers'][$server]['host'] == '127.0.0.1' + || $cfg['Servers'][$server]['host'] == '::1'; ?>