This commit is contained in:
2026-11-04 15:35:08 +08:00
parent cd0ad7488e
commit 7ff1530684
3 changed files with 6 additions and 0 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)