simplify peering

This commit is contained in:
Katherina Walshe-Grey 2024-11-05 19:41:26 +00:00
parent b4e7b0ca3e
commit 382e0a74af

View file

@ -103,7 +103,7 @@ in
PersistentKeepalive = mkIf (peer.subnet != host.subnet) cfg.persistentKeepalive; PersistentKeepalive = mkIf (peer.subnet != host.subnet) cfg.persistentKeepalive;
}; };
}) })
(filterAttrs (name: peer: peer != host && (host.subnet == "internet" || canDirectPeer host peer)) hosts); (filterAttrs (name: peer: peer != host && (canDirectPeer host peer || canDirectPeer peer host)) hosts);
}; };
networks."30-birdsong" = { networks."30-birdsong" = {