mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 17:04:35 +04:00
luci-proto-wireguard: disambiguate fwmark description
fwmark is used internally during firewall processing, and no mark remains on egress. Yes, the fwmark is to identify egress encrypted packets, but no egress packet itself contains this value, and this metadata disappears once the packet leaves the firewall. The current wording is ambiguous, since "for" does a lot of lifting. "during" helps limit the scope of this definition. Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -184,7 +184,7 @@ return network.registerProtocol('wireguard', {
|
||||
o.placeholder = '1420';
|
||||
o.optional = true;
|
||||
|
||||
o = s.taboption('advanced', form.Value, 'fwmark', _('Firewall Mark'), _('Optional. 32-bit mark for outgoing encrypted packets. Enter value in hex, starting with <code>0x</code>.'));
|
||||
o = s.taboption('advanced', form.Value, 'fwmark', _('Firewall Mark'), _('Optional. 32-bit mark for packets during firewall processing. Enter value in hex, starting with <code>0x</code>.'));
|
||||
o.optional = true;
|
||||
o.validate = function(section_id, value) {
|
||||
if (value.length > 0 && !value.match(/^0x[a-fA-F0-9]{1,8}$/))
|
||||
|
||||
Reference in New Issue
Block a user