wireguard: add checkbox for `nohostroute` option
[oweals/luci.git] / protocols / luci-proto-wireguard / htdocs / luci-static / resources / protocol / wireguard.js
index c9b00abdece4334a379d19dd7d9181b5b2212fab..c8e1f8403e3d283e40a86443b32e958b6045e504 100644 (file)
@@ -60,6 +60,8 @@ return network.registerProtocol('wireguard', {
                o.datatype = 'ipaddr';
                o.optional = true;
 
+               o = s.taboption('general', form.Flag, 'nohostroute', _('No Host Routes'), _('Optional. Do not create host routes to peers.'));
+               o.optional = true;
 
                // -- advanced --------------------------------------------------------------------