From: Yousong Zhou Date: Mon, 7 Mar 2022 08:24:02 +0000 (+0800) Subject: luci-app-shadowsocks-libev: add fields nft_{tcp,udp}_extra X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=cea4277670d8324eb56df2aacb8bb1a881260a26;p=openwrt-luci.git luci-app-shadowsocks-libev: add fields nft_{tcp,udp}_extra They were proposed in openwrt/packages#17970 Signed-off-by: Yousong Zhou --- diff --git a/applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/rules.js b/applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/rules.js index 172714c273..527a9e74fe 100644 --- a/applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/rules.js +++ b/applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/rules.js @@ -64,6 +64,12 @@ return view.extend({ o.multiple = true; o.noaliases = true; o.noinactive = true; + s.taboption('general', form.Value, 'nft_tcp_extra', + _('Extra tcp expression'), + _('Extra nftables expression for matching tcp traffics, e.g. "tcp dport { 80, 443 }"')); + s.taboption('general', form.Value, 'nft_udp_extra', + _('Extra udp expression'), + _('Extra nftables expression for matching udp traffics, e.g. "udp dport { 53 }"')); src_dst_option(s, 'src', form.DynamicList, 'src_ips_bypass', _('Src ip/net bypass'),