luci-proto-wireguard: adjust MTU range from 0-8940
authorFlorian Eckert <[email protected]>
Thu, 14 Apr 2022 09:59:56 +0000 (11:59 +0200)
committerFlorian Eckert <[email protected]>
Thu, 14 Apr 2022 10:04:32 +0000 (12:04 +0200)
Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit 7206d8fd6aac0708dda6ac17c96709e066f6328b)

protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js

index 50c1f23641ba29a57654b6bf83740673b57e8a00..e73fdf8073cefd6eb24120b45312764d381e2fa7 100644 (file)
@@ -142,7 +142,7 @@ return network.registerProtocol('wireguard', {
                // -- advanced --------------------------------------------------------------------
 
                o = s.taboption('advanced', form.Value, 'mtu', _('MTU'), _('Optional. Maximum Transmission Unit of tunnel interface.'));
-               o.datatype = 'max(9200)';
+               o.datatype = 'range(0,8940)';
                o.placeholder = '1420';
                o.optional = true;