summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2022-03-07 16:24:02 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2022-03-07 16:27:44 +0800
commitcea4277670d8324eb56df2aacb8bb1a881260a26 (patch)
tree7540fd2d1b03e0c582f448352525dae38225fc42 /applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev
parent98e0832f18236c5b280996a049ce10cfcf18c0d0 (diff)
luci-app-shadowsocks-libev: add fields nft_{tcp,udp}_extra
They were proposed in openwrt/packages#17970 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev')
-rw-r--r--applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/rules.js6
1 files changed, 6 insertions, 0 deletions
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'),