mirror of
https://github.com/midoks/mdserver-web
synced 2026-11-04 18:35:59 +08:00
update
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user