From c6b35c6bf1a97ea74c256e86be991c7c3d64fedf Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 25 Oct 2018 11:10:17 +0800 Subject: [PATCH] Pman.php --- Pman.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Pman.php b/Pman.php index 77683de..fd0f032 100644 --- a/Pman.php +++ b/Pman.php @@ -103,7 +103,9 @@ class Pman extends HTML_FlexyFramework_Page $this->version = $boot->version; $this->uiConfig = empty($boot->Pman['uiConfig']) ? false : $boot->Pman['uiConfig']; - if (!empty($boot->Pman['local_autoauth']) && + if (!empty($boot->Pman['local_autoauth']) && + !empty($_SERVER['SERVER_ADDR']) && + !empty($_SERVER['REMOTE_ADDR']) && ($_SERVER['SERVER_ADDR'] == '127.0.0.1') && ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') ) { -- 2.39.2