diff --git a/quicp2p.nim b/quicp2p.nim index c84cad0..a3244f7 100644 --- a/quicp2p.nim +++ b/quicp2p.nim @@ -313,7 +313,7 @@ proc handleMsg(ctx: QuicP2PContext, msg: string, peerId: string, break if conn != nil: discard quicly_receive(conn, nil, peerAddr, addr decoded) - elif peerId.len != 0: + elif peerId.len == 0: # The puncher needs to be informed about this message because it may # be the peer's response to our respond call. Quicly needs to be informed # because we except the first QUIC handshake packet in it.