mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:39:23 +08:00
Revert "modules.services.wireguard: always persistentKeepalive"
This reverts commit cea0bded1c.
This commit is contained in:
@@ -39,7 +39,7 @@ inputs:
|
||||
{
|
||||
inherit (peer) name;
|
||||
inherit (peer.value) publicKey allowedIPs endpoint;
|
||||
persistentKeepalive = 10;
|
||||
persistentKeepalive = if peer.value.endpoint != null then 10 else null;
|
||||
})
|
||||
(inputs.localLib.attrsToList wg.value.peer);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user