Update index.py

pull/632/head
Mr Chen 6 months ago
parent df7a43919f
commit a3af4ac405
  1. 2
      plugins/pureftp/index.py

@ -398,7 +398,7 @@ def modFtpPort():
return '端口范围不正确!'
file = file = getServerDir() + '/etc/pure-ftpd.conf'
conf = mw.readFile(file)
rep = u"\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)
conf = re.sub(
rep, "\nBind 0.0.0.0," + port, conf)

Loading…
Cancel
Save