Merge pull request #3615 from vfreex/add-wireguard-nohostroute
authorJo-Philipp Wich <jo@mein.io>
Sat, 8 Feb 2020 18:13:19 +0000 (19:13 +0100)
committerGitHub <noreply@github.com>
Sat, 8 Feb 2020 18:13:19 +0000 (19:13 +0100)
wireguard: add checkbox for `nohostroute` option

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 --------------------------------------------------------------------