From 831281a17c5f2f9a7db348d777b4073b0365b329 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Sun, 18 Nov 2018 19:30:57 +0800 Subject: [PATCH] add Pasv min and max port support in luci app vsftpd --- package/lean/luci-app-vsftpd/Makefile | 2 +- .../luci-app-vsftpd/luasrc/model/cbi/vsftpd/general.lua | 8 ++++++++ package/lean/luci-app-vsftpd/po/zh-cn/vsftpd.po | 7 +++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/package/lean/luci-app-vsftpd/Makefile b/package/lean/luci-app-vsftpd/Makefile index 97d181f01..49b71c9e9 100644 --- a/package/lean/luci-app-vsftpd/Makefile +++ b/package/lean/luci-app-vsftpd/Makefile @@ -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 diff --git a/package/lean/luci-app-vsftpd/luasrc/model/cbi/vsftpd/general.lua b/package/lean/luci-app-vsftpd/luasrc/model/cbi/vsftpd/general.lua index 74dbcad6e..2de653c79 100644 --- a/package/lean/luci-app-vsftpd/luasrc/model/cbi/vsftpd/general.lua +++ b/package/lean/luci-app-vsftpd/luasrc/model/cbi/vsftpd/general.lua @@ -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")) diff --git a/package/lean/luci-app-vsftpd/po/zh-cn/vsftpd.po b/package/lean/luci-app-vsftpd/po/zh-cn/vsftpd.po index f8e3ba64a..d77cb43ad 100644 --- a/package/lean/luci-app-vsftpd/po/zh-cn/vsftpd.po +++ b/package/lean/luci-app-vsftpd/po/zh-cn/vsftpd.po @@ -227,3 +227,10 @@ msgstr "单位为秒" msgid "in KB/s, 0 means no limitation" msgstr "单位为 KB/s,0 表明不限制" + +msgid "Pasv Min Port" +msgstr "Pasv 模式最小端口" + +msgid "Pasv Max Port" +msgstr "Pasv 模式最大端口" +