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>
This commit is contained in:
parent
b946a2c030
commit
9684901dc2
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,8 @@ return network.registerProtocol('wireguard', {
|
||||||
o.datatype = 'ipaddr';
|
o.datatype = 'ipaddr';
|
||||||
o.optional = true;
|
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 --------------------------------------------------------------------
|
// -- advanced --------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue