From cea4277670d8324eb56df2aacb8bb1a881260a26 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Mon, 7 Mar 2022 16:24:02 +0800 Subject: [PATCH] luci-app-shadowsocks-libev: add fields nft_{tcp,udp}_extra They were proposed in openwrt/packages#17970 Signed-off-by: Yousong Zhou --- .../luci-static/resources/view/shadowsocks-libev/rules.js | 6 ++++++ 1 file changed, 6 insertions(+) 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'), -- 2.30.2