Skip to content

Commit

Permalink
webrtcprivate: fix bug with gater intercept secured
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Oct 16, 2023
1 parent f5c051f commit 07903ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/transport/webrtcprivate/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (l *listener) handleSignalingStream(s network.Stream) {
return
}

if l.transport.gater != nil && l.transport.gater.InterceptSecured(network.DirInbound, s.Conn().RemotePeer(), conn) {
if l.transport.gater != nil && !l.transport.gater.InterceptSecured(network.DirInbound, s.Conn().RemotePeer(), conn) {
conn.Close()
log.Debugf("conn gater refused connection to addr: %s", conn.RemoteMultiaddr())
}
Expand Down

0 comments on commit 07903ee

Please sign in to comment.