mirror of
https://github.com/midoks/mdserver-web
synced 2026-11-05 19:56:01 +08:00
update
This commit is contained in:
@@ -1595,6 +1595,8 @@ def getDbAccess():
|
|||||||
userStr = ','.join(users)
|
userStr = ','.join(users)
|
||||||
if userStr == '127.0.0.1,localhost':
|
if userStr == '127.0.0.1,localhost':
|
||||||
return mw.returnJson(True, 'localhost')
|
return mw.returnJson(True, 'localhost')
|
||||||
|
if userStr == '127.0.0.1,::1,localhost':
|
||||||
|
return mw.returnJson(True, 'localhost')
|
||||||
|
|
||||||
return mw.returnJson(True, userStr)
|
return mw.returnJson(True, userStr)
|
||||||
|
|
||||||
|
|||||||
@@ -1762,6 +1762,8 @@ def getDbAccess():
|
|||||||
userStr = ','.join(users)
|
userStr = ','.join(users)
|
||||||
if userStr == '127.0.0.1,localhost':
|
if userStr == '127.0.0.1,localhost':
|
||||||
return mw.returnJson(True, 'localhost')
|
return mw.returnJson(True, 'localhost')
|
||||||
|
if userStr == '127.0.0.1,::1,localhost':
|
||||||
|
return mw.returnJson(True, 'localhost')
|
||||||
|
|
||||||
return mw.returnJson(True, userStr)
|
return mw.returnJson(True, userStr)
|
||||||
|
|
||||||
|
|||||||
@@ -1969,6 +1969,8 @@ def getDbAccess():
|
|||||||
userStr = ','.join(users)
|
userStr = ','.join(users)
|
||||||
if userStr == '127.0.0.1,localhost':
|
if userStr == '127.0.0.1,localhost':
|
||||||
return mw.returnJson(True, 'localhost')
|
return mw.returnJson(True, 'localhost')
|
||||||
|
if userStr == '127.0.0.1,::1,localhost':
|
||||||
|
return mw.returnJson(True, 'localhost')
|
||||||
|
|
||||||
return mw.returnJson(True, userStr)
|
return mw.returnJson(True, userStr)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user