add Pasv min and max port support in luci app vsftpd

This commit is contained in:
coolsnowwolf 2018-11-18 19:30:57 +08:00
parent d421e24773
commit 831281a17c
3 changed files with 16 additions and 1 deletions

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for VSFTPD
LUCI_DEPENDS:=+vsftpd-alt
LUCI_PKGARCH:=all
PKG_VERSION:=1.0
PKG_RELEASE:=2
PKG_RELEASE:=3
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -39,6 +39,14 @@ o = sl:option(Value, "dataport", translate("Data Port"))
o.datatype = "uinteger"
o.default = "20"
o = sl:option(Value, "pasv_min_port", translate("Pasv Min Port"))
o.datatype = "uinteger"
o.default = "50000"
o = sl:option(Value, "pasv_max_port", translate("Pasv Max Port"))
o.datatype = "uinteger"
o.default = "51000"
sg = m:section(NamedSection, "global", "global", translate("Global Settings"))

View File

@ -227,3 +227,10 @@ msgstr "单位为秒"
msgid "in KB/s, 0 means no limitation"
msgstr "单位为 KB/s0 表明不限制"
msgid "Pasv Min Port"
msgstr "Pasv 模式最小端口"
msgid "Pasv Max Port"
msgstr "Pasv 模式最大端口"