Update nosql_mongodb.py

This commit is contained in:
dami 2025-08-17 17:25:34 +08:00
parent 1c4140daec
commit 5c77dd91e7
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ class nosqlMongodb():
keys = ["bind_ip", "port"]
result['host'] = '127.0.0.1'
rep = 'port\s*=\s*(.*)'
rep = r'port\s*=\s*(.*)'
ip_re = re.search(rep, mgdb_content)
if ip_re:
result['port'] = int(ip_re.groups()[0].strip())