wireguard: do not add host-dependencies if fwmark is set
authorDaniel Golle <daniel@makrotopia.org>
Tue, 19 Mar 2019 15:47:17 +0000 (16:47 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 27 Mar 2019 21:53:14 +0000 (22:53 +0100)
commit1e8bb50b9324cb368fe5b2bd916c98b8d8517be5
tree62f4b55f68a0c7da1826578c18533f466c1b9cd0
parentb2152c8e6beaddded3aab0a3383f24624d6895f1
wireguard: do not add host-dependencies if fwmark is set

The 'fwmark' option is used to define routing traffic to
wireguard endpoints to go through specific routing tables.
In that case it doesn't make sense to setup routes for
host-dependencies in the 'main' table, so skip setting host
dependencies if 'fwmark' is set.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/network/services/wireguard/files/wireguard.sh