From cfe063a6e7980d708bdcee2aee80e44c9e0baf62 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 29 Apr 2024 14:59:00 +0800 Subject: [PATCH] Update index.py --- plugins/mongodb/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 6f3885cd0..2dc09c959 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -173,7 +173,7 @@ def runInfo(): import pymongo port = getConfPort() - client = pymongo.MongoClient(host='127.0.0.1', port=int(port)) + client = pymongo.MongoClient(host='127.0.0.1', port=int(port), directConnection=True) db = client.admin serverStatus = db.command('serverStatus')