simplify peering
This commit is contained in:
parent
b4e7b0ca3e
commit
382e0a74af
|
@ -103,7 +103,7 @@ in
|
|||
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" = {
|
||||
|
|
Loading…
Reference in a new issue