mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -400,8 +400,7 @@ def modFtpPort():
|
|||||||
conf = mw.readFile(file)
|
conf = mw.readFile(file)
|
||||||
rep = r"\n#?\s*Bind\s+[0-9]+\.[0-9]+\.[0-9]+\.+[0-9]+,([0-9]+)"
|
rep = r"\n#?\s*Bind\s+[0-9]+\.[0-9]+\.[0-9]+\.+[0-9]+,([0-9]+)"
|
||||||
# preg_match(rep,conf,tmp)
|
# preg_match(rep,conf,tmp)
|
||||||
conf = re.sub(
|
conf = re.sub(rep, "\nBind 0.0.0.0," + port, conf)
|
||||||
rep, "\nBind 0.0.0.0," + port, conf)
|
|
||||||
mw.writeFile(file, conf)
|
mw.writeFile(file, conf)
|
||||||
restart()
|
restart()
|
||||||
return 'ok'
|
return 'ok'
|
||||||
|
|||||||
Reference in New Issue
Block a user