Update index.py

This commit is contained in:
Mr Chen
2024-12-13 02:32:45 +08:00
parent b6cda24231
commit ab606e0629
+1 -1
View File
@@ -125,7 +125,7 @@ def initRedisConf():
requirepass = ""
conf = mw.getServerDir() + '/redis/redis.conf'
content = mw.readFile(conf)
rep = r"^(requirepass" + r"\)\s*([.0-9A-Za-z_& ~]+)"
rep = r"^(requirepass)\s*([.0-9A-Za-z_& ~]+)"
tmp = re.search(rep, content, re.M)
if tmp:
requirepass = tmp.groups()[1]