Update index.py

pull/577/head
Mr Chen 1 year ago
parent d473f0769f
commit 0b95db3bd5
  1. 7
      plugins/mongodb/index.py

@ -106,6 +106,9 @@ def getConfIp():
data = getConfigData()
return data['net']['bindIp']
def getConfLocalIp():
return '127.0.0.1'
def getConfPort():
data = getConfigData()
return data['net']['port']
@ -185,7 +188,7 @@ def mongdbClientS():
import pymongo
port = getConfPort()
auth = getConfAuth()
ip = getConfIp()
ip = getConfLocalIp()
mg_root = pSqliteDb('config').where('id=?', (1,)).getField('mg_root')
if auth == 'disabled':
@ -199,7 +202,7 @@ def mongdbClient():
import pymongo
port = getConfPort()
auth = getConfAuth()
ip = getConfIp()
ip = getConfLocalIp()
mg_root = pSqliteDb('config').where('id=?', (1,)).getField('mg_root')
# print(ip,port,auth,mg_root)
if auth == 'disabled':

Loading…
Cancel
Save