Fix chronicles
This commit is contained in:
parent
afce5cad17
commit
a36708a5a0
|
@ -40,7 +40,7 @@ type
|
||||||
DtlsConn* = ref object
|
DtlsConn* = ref object
|
||||||
conn: StunConn
|
conn: StunConn
|
||||||
laddr: TransportAddress
|
laddr: TransportAddress
|
||||||
raddr: TransportAddress
|
raddr*: TransportAddress
|
||||||
dataRecv: AsyncQueue[seq[byte]]
|
dataRecv: AsyncQueue[seq[byte]]
|
||||||
sendFuture: Future[void]
|
sendFuture: Future[void]
|
||||||
|
|
||||||
|
|
|
@ -347,7 +347,7 @@ proc readLoopProc(res: SctpConn) {.async.} =
|
||||||
msg = await res.conn.read()
|
msg = await res.conn.read()
|
||||||
data = usrsctp_dumppacket(unsafeAddr msg[0], uint(msg.len), SCTP_DUMP_INBOUND)
|
data = usrsctp_dumppacket(unsafeAddr msg[0], uint(msg.len), SCTP_DUMP_INBOUND)
|
||||||
if data != nil:
|
if data != nil:
|
||||||
trace "Receive connection", remoteAddress = result.conn.raddr, data = data.packetPretty()
|
trace "Receive connection", remoteAddress = res.conn.raddr, data = data.packetPretty()
|
||||||
usrsctp_freedumpbuffer(data)
|
usrsctp_freedumpbuffer(data)
|
||||||
usrsctp_conninput(cast[pointer](res), unsafeAddr msg[0], uint(msg.len), 0)
|
usrsctp_conninput(cast[pointer](res), unsafeAddr msg[0], uint(msg.len), 0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue