From 7ff153068495626e9f7336e45ae2cd547d596f8c Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 4 Nov 2026 15:35:08 +0800 Subject: [PATCH] update --- plugins/mariadb/index.py | 2 ++ plugins/mysql-community/index.py | 2 ++ plugins/mysql/index.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index e507c6902..e807ce599 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -1595,6 +1595,8 @@ def getDbAccess(): userStr = ','.join(users) if userStr == '127.0.0.1,localhost': return mw.returnJson(True, 'localhost') + if userStr == '127.0.0.1,::1,localhost': + return mw.returnJson(True, 'localhost') return mw.returnJson(True, userStr) diff --git a/plugins/mysql-community/index.py b/plugins/mysql-community/index.py index 89f388b4f..ea9a0aa5c 100755 --- a/plugins/mysql-community/index.py +++ b/plugins/mysql-community/index.py @@ -1762,6 +1762,8 @@ def getDbAccess(): userStr = ','.join(users) if userStr == '127.0.0.1,localhost': return mw.returnJson(True, 'localhost') + if userStr == '127.0.0.1,::1,localhost': + return mw.returnJson(True, 'localhost') return mw.returnJson(True, userStr) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index c5c5148fc..39d990370 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -1969,6 +1969,8 @@ def getDbAccess(): userStr = ','.join(users) if userStr == '127.0.0.1,localhost': return mw.returnJson(True, 'localhost') + if userStr == '127.0.0.1,::1,localhost': + return mw.returnJson(True, 'localhost') return mw.returnJson(True, userStr)