we are the responder if no peerId is given

master
Christian Ulrich 2020-11-17 22:56:19 +01:00
parent 23c2f3221e
commit b4bc750e99
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 1 additions and 1 deletions

View File

@ -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.