Fix chronicles

This commit is contained in:
Ludovic Chenut 2023-10-20 11:15:00 +02:00
parent afce5cad17
commit a36708a5a0
No known key found for this signature in database
GPG Key ID: D9A59B1907F1D50C
2 changed files with 2 additions and 2 deletions

View File

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

View File

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