forked from mirrors/nixpkgs
wireguard: fix function for adding routes
This commit is contained in:
parent
74c3cdd893
commit
194c4002b6
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue