Skip to content

Commit 6319054

Browse files
committedJul 23, 2017
wireguard: sometimes module tries to re-add the default route, which fails - use replace to make it succeed
1 parent 26cf940 commit 6319054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nixos/modules/services/networking/wireguard.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ let
208208
"${ipCommand} link set up dev ${name}"
209209

210210
(map (peer: (map (ip:
211-
"${ipCommand} route add ${ip} dev ${name}"
211+
"${ipCommand} route replace ${ip} dev ${name}"
212212
) peer.allowedIPs)) values.peers)
213213

214214
values.postSetup

0 commit comments

Comments
 (0)