Fixed persistent keepalive for networkd configurer

release
Tilmann Meyer 9 months ago committed by Matthew Salerno
parent 37453982ab
commit 014fa13262

@ -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" {})
);

Loading…
Cancel
Save