packages/hyprspace: allow using unlimited relay to connect to external peers

This commit is contained in:
Max Headroom 2023-01-27 16:10:29 +01:00
parent 39d15bdd9a
commit bb54aff319

View file

@ -19,7 +19,7 @@ func (ccr ClosedCircuitRelayFilter) AllowReserve(p peer.ID, a multiaddr.Multiadd
func (ccr ClosedCircuitRelayFilter) AllowConnect(src peer.ID, srcAddr multiaddr.Multiaddr, dest peer.ID) bool {
_, foundSrc := config.FindPeer(ccr.allowedPeers, src)
_, foundDst := config.FindPeer(ccr.allowedPeers, dest)
return foundSrc && foundDst
return foundSrc || foundDst
}
func NewClosedCircuitRelayFilter(allowedPeers []config.Peer) relay.ACLFilter {