wireguard: sometimes module tries to re-add the default route, which fails - use replace to make it succeed

This commit is contained in:
Aristid Breitkreuz 2017-07-23 23:08:39 +02:00
parent 26cf940da8
commit 63190540a8

View File

@ -208,7 +208,7 @@ let
"${ipCommand} link set up dev ${name}"
(map (peer: (map (ip:
"${ipCommand} route add ${ip} dev ${name}"
"${ipCommand} route replace ${ip} dev ${name}"
) peer.allowedIPs)) values.peers)
values.postSetup