From bb54aff319079520739a503fb7799e6eb15d60e8 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 27 Jan 2023 16:10:29 +0100 Subject: [PATCH] packages/hyprspace: allow using unlimited relay to connect to external peers --- packages/networking/hyprspace/p2p/relay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/networking/hyprspace/p2p/relay.go b/packages/networking/hyprspace/p2p/relay.go index afbf060..a2e9613 100644 --- a/packages/networking/hyprspace/p2p/relay.go +++ b/packages/networking/hyprspace/p2p/relay.go @@ -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 {