diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js index 312b53007a..afc02b33ba 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js @@ -195,6 +195,16 @@ return view.extend({ o.datatype = 'string'; o.placeholder = '0x1/0xf'; + o = s.taboption('advanced', form.Value, 'sport', _('Source port'), _('Match traffic from this source port (range)')); + o.modalonly = true; + o.datatype = 'portrange'; + o.placeholder = '0-65535'; + + o = s.taboption('advanced', form.Value, 'dport', _('Destination port'), _('Match traffic from this destination port (range)')); + o.modalonly = true; + o.datatype = 'portrange'; + o.placeholder = '0-65535'; + o = s.taboption('advanced', form.Value, 'tos', _('Type of service'), _('Specifies the TOS value to match in IP headers')); o.modalonly = true; o.datatype = 'uinteger';