summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-08 19:13:19 +0100
committerGitHub <noreply@github.com>2020-02-08 19:13:19 +0100
commit2c2cfaebf1ec8d9baaef95973ff98785141fc76b (patch)
treeba09a41ffb2b5ddc9ed29ee0f3b9b4ee840cd99a
parentb946a2c030177db366ef918435057f4ee64d8cf1 (diff)
parent9684901dc27e37900d4c4cf09b1de3b836649e0e (diff)
Merge pull request #3615 from vfreex/add-wireguard-nohostroute
wireguard: add checkbox for `nohostroute` option
-rw-r--r--protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js
index c9b00abdec..c8e1f8403e 100644
--- a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js
+++ b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js
@@ -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 --------------------------------------------------------------------