Skip to content

Commit

Permalink
wireguard: sometimes module tries to re-add the default route, which …
Browse files Browse the repository at this point in the history
…fails - use replace to make it succeed
  • Loading branch information
aristidb committed Jul 23, 2017
1 parent 26cf940 commit 6319054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/wireguard.nix
Expand Up @@ -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
Expand Down

0 comments on commit 6319054

Please sign in to comment.