From e4a6d5e4fbcb8d51aa3a4204f997c792e4559871 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Sat, 2 May 2020 18:24:57 +0200 Subject: [PATCH] Fix bypass port destination --- .../htdocs/luci-static/resources/view/services/omr-bypass.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js b/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js index 729c8a8ee..edf03099b 100644 --- a/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js +++ b/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js @@ -62,13 +62,12 @@ return L.view.extend({ o = s.option(form.Value, 'dport', _('port')); o.rmempty = false; - o = s.option(form.MultiValue, 'proto', _('protocol')); + o = s.option(form.ListValue, 'proto', _('protocol')); o.default = 'tcp'; - o.modalonly = true; - o.custom = true; o.rmempty = false; o.value('tcp'); o.value('udp'); + o.value('icmp'); o = s.option(widgets.DeviceSelect, 'interface', _('Interface')); o.noaliases = true;