packages/hyprspace: allow using unlimited relay to connect to external peers
This commit is contained in:
parent
39d15bdd9a
commit
bb54aff319
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
func (ccr ClosedCircuitRelayFilter) AllowConnect(src peer.ID, srcAddr multiaddr.Multiaddr, dest peer.ID) bool {
|
||||||
_, foundSrc := config.FindPeer(ccr.allowedPeers, src)
|
_, foundSrc := config.FindPeer(ccr.allowedPeers, src)
|
||||||
_, foundDst := config.FindPeer(ccr.allowedPeers, dest)
|
_, foundDst := config.FindPeer(ccr.allowedPeers, dest)
|
||||||
return foundSrc && foundDst
|
return foundSrc || foundDst
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewClosedCircuitRelayFilter(allowedPeers []config.Peer) relay.ACLFilter {
|
func NewClosedCircuitRelayFilter(allowedPeers []config.Peer) relay.ACLFilter {
|
||||||
|
|
Loading…
Reference in a new issue