wireguard: sometimes module tries to re-add the default route, which fails - use replace to make it succeed
This commit is contained in:
parent
26cf940da8
commit
63190540a8
|
@ -208,7 +208,7 @@ let
|
||||||
"${ipCommand} link set up dev ${name}"
|
"${ipCommand} link set up dev ${name}"
|
||||||
|
|
||||||
(map (peer: (map (ip:
|
(map (peer: (map (ip:
|
||||||
"${ipCommand} route add ${ip} dev ${name}"
|
"${ipCommand} route replace ${ip} dev ${name}"
|
||||||
) peer.allowedIPs)) values.peers)
|
) peer.allowedIPs)) values.peers)
|
||||||
|
|
||||||
values.postSetup
|
values.postSetup
|
||||||
|
|
Loading…
Reference in a new issue