mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 14:54:36 +04:00
luci-mod-network: add gui options for netifd source and destination port
Maintainer: @systemcrash
Compile tested: aarch64, cortex-a53, OpenWRT Main
Run tested: Dynalink DL-WRX36
Recently for netifd source and destination port have been added see 7901e66c5f
This PR adds the GUI options for netifd source and destination port.
Signed-off-by: Erik Conijn <egc112@msn.com>
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user