diff options
author | Joerg Thalheim <joerg@thalheim.io> | 2017-09-25 20:39:37 +0100 |
---|---|---|
committer | Joerg Thalheim <joerg@thalheim.io> | 2017-09-25 20:42:03 +0100 |
commit | 194c4002b640b8f4023c05ecb6e932006bbea829 (patch) | |
tree | 04910b00a2962431f0f8990561bb95f0344c551c /nixos/modules/services/networking/wireguard.nix | |
parent | 74c3cdd893dd8d22875e713cde8bc0c12162787d (diff) | |
download | nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar.gz nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar.bz2 nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar.lz nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar.xz nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar.zst nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.zip |
wireguard: fix function for adding routes
Diffstat (limited to 'nixos/modules/services/networking/wireguard.nix')
-rw-r--r-- | nixos/modules/services/networking/wireguard.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/wireguard.nix b/nixos/modules/services/networking/wireguard.nix index 27ca0bcc574..eb08e7f90c0 100644 --- a/nixos/modules/services/networking/wireguard.nix +++ b/nixos/modules/services/networking/wireguard.nix @@ -225,7 +225,7 @@ let "${ipCommand} link set up dev ${name}" - (lib.optional (values.allowedIPsAsRoutes != false) (map (peer: + (optionals (values.allowedIPsAsRoutes != false) (map (peer: (map (allowedIP: "${ipCommand} route replace ${allowedIP} dev ${name} table ${values.table}" ) peer.allowedIPs) |