wireguard: add checkbox for `nohostroute` option 3615/head
authorYuxiang Zhu <vfreex@gmail.com>
Sat, 8 Feb 2020 18:05:50 +0000 (02:05 +0800)
committerYuxiang Zhu <vfreex@gmail.com>
Sat, 8 Feb 2020 18:12:30 +0000 (02:12 +0800)
commit9684901dc27e37900d4c4cf09b1de3b836649e0e
treeba09a41ffb2b5ddc9ed29ee0f3b9b4ee840cd99a
parentb946a2c030177db366ef918435057f4ee64d8cf1
wireguard: add checkbox for `nohostroute` option

This change allows to configure `nohostroute` option for wireguard to explicitely prevent creation
of host routes to endpoints.

By default without `option nohostroute '1'`, an explicite route to the peer's endpoint will be created in the main routing table with the next hop to the gateway. However, it causes issues with some setup. Enabling this option will inhibit this behavior. See discussions at http://lists.openwrt.org/pipermail/openwrt-devel/2019-March/016329.html.

Signed-off-by: Yuxiang Zhu <vfreex@gmail.com>
protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js