From 014fa13262f264d61de6ae5cd49b67bc02c25bd0 Mon Sep 17 00:00:00 2001 From: Tilmann Meyer Date: Sun, 24 Mar 2024 23:09:00 +0100 Subject: [PATCH] Fixed persistent keepalive for networkd configurer --- configurers/networkd.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configurers/networkd.nix b/configurers/networkd.nix index 93c5b0f..039b32c 100644 --- a/configurers/networkd.nix +++ b/configurers/networkd.nix @@ -35,9 +35,8 @@ with getKeyProviderFuncs keyProviders inputs intermediateConfig localPeerName; PublicKey = getPeerPubKey remotePeerName; AllowedIPs = map (ip: asCidr ip) peerConnection.ipAddresses; PresharedKeyFile = getSubnetPSKFile subnetName; - }; + } // (if peerConnection.endpoint ? persistentKeepalive then {PersistentKeepalive = peerConnection.endpoint.persistentKeepalive;} else {}); } - // (if peerConnection.endpoint ? persistentKeepalive then {PersistentKeepalive = peerConnection.endpoint.persistentKeepalive;} else {}) // (warnIf (peerConnection.endpoint ? dynamicEndpointRefreshSeconds) "dynamicEndpointRefreshSeconds not supported for networkd" {}) // (warnIf (peerConnection.endpoint ? dynamicEndpointRefreshRestartSeconds) "dynamicEndpointRefreshRestartSeconds not supported for networkd" {}) );