Merge pull request #5650 from clayface/ipip-nohostroute
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 20 Jan 2022 08:16:19 +0000 (09:16 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Jan 2022 08:16:19 +0000 (09:16 +0100)
luci-proto-ipip: add nohostroute configurable

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

index 7423a0858597552bd809954ca48bb3cca1b8b61f..44a0e20ac649a453dfefdcf68187cbc5cd84a261 100644 (file)
@@ -64,6 +64,10 @@ 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;
+
+               o = s.taboption('advanced', form.Flag, 'nohostroute', _("No host route"), _("Do not create host route to peer (optional)."));
+               o.optional = true;
        }
 });