From 6306587d51b692562caa70ab8caa8161d64caa9b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 16 Dec 2021 09:52:43 +0100 Subject: yggdrasil-wg: ... --- modules/yggdrasil-wg/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/yggdrasil-wg') diff --git a/modules/yggdrasil-wg/default.nix b/modules/yggdrasil-wg/default.nix index d7097e1d..4b93da57 100644 --- a/modules/yggdrasil-wg/default.nix +++ b/modules/yggdrasil-wg/default.nix @@ -203,7 +203,7 @@ in { Destination = "${batSubnet}::/${toString batSubnetLength}"; }; } - ] ++ (concatMap (router: map (Gateway: { routeConfig = { Destination = "::/0"; Metric = 1; inherit Gateway; }; }) batHostIPs.${router}) routers); + ] ++ (concatMap (router: map (rAddr: { routeConfig = { Destination = "::/0"; Metric = 1; Gateway = stripSubnet rAddr; }; }) batHostIPs.${router}) routers); linkConfig = { MACAddress = "${batHostMACs.${hostName}}"; RequiredForOnline = false; -- cgit v1.2.3