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)