we are the responder if no peerId is given
This commit is contained in:
parent
23c2f3221e
commit
b4bc750e99
|
@ -313,7 +313,7 @@ proc handleMsg(ctx: QuicP2PContext, msg: string, peerId: string,
|
||||||
break
|
break
|
||||||
if conn != nil:
|
if conn != nil:
|
||||||
discard quicly_receive(conn, nil, peerAddr, addr decoded)
|
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
|
# 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
|
# be the peer's response to our respond call. Quicly needs to be informed
|
||||||
# because we except the first QUIC handshake packet in it.
|
# because we except the first QUIC handshake packet in it.
|
||||||
|
|
Loading…
Reference in New Issue