From e0c761bdf059efbc6a1c2ec4c3acecdbc2c688b7 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 4 Jan 2025 12:46:07 +0800 Subject: [PATCH] Update index.py --- plugins/phpmyadmin/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/phpmyadmin/index.py b/plugins/phpmyadmin/index.py index 832c62ce4..8a5201505 100755 --- a/plugins/phpmyadmin/index.py +++ b/plugins/phpmyadmin/index.py @@ -13,6 +13,7 @@ if os.path.exists(web_dir): os.chdir(web_dir) import core.mw as mw +import thisdb from utils.site import sites as MwSites app_debug = False @@ -478,7 +479,7 @@ def pluginsDbSupport(): port = getPort() ip = '127.0.0.1' if not mw.isAppleSystem(): - ip = mw.getLocalIp() + ip = thisdb.getOption('server_ip') cfg = data['cfg'] auth = cfg['username']+':'+cfg['password']