luci-proto-ipip: explicitly set df to optional
authorMatthew Hagan <mnhagan88@gmail.com>
Wed, 19 Jan 2022 23:04:37 +0000 (23:04 +0000)
committerMatthew Hagan <mnhagan88@gmail.com>
Wed, 19 Jan 2022 23:04:37 +0000 (23:04 +0000)
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
protocols/luci-proto-ipip/htdocs/luci-static/resources/protocol/ipip.js

index 7423a0858597552bd809954ca48bb3cca1b8b61f..3fae6b23dda1982e17530b3c755d8e40482ee7bf 100644 (file)
@@ -64,6 +64,7 @@ return network.registerProtocol('ipip', {
                o.optional = true;
                o.datatype = 'range(0, 255)';
 
-               s.taboption('advanced', form.Flag, 'df', _("Don't Fragment"), _("Enable the DF (Don't Fragment) flag of the encapsulating packets."));
+               o = s.taboption('advanced', form.Flag, 'df', _("Don't Fragment"), _("Enable the DF (Don't Fragment) flag of the encapsulating packets."));
+               o.optional = true;
        }
 });