From a36708a5a0103f7dbbca85f7021eab864cc6cca0 Mon Sep 17 00:00:00 2001 From: Ludovic Chenut Date: Fri, 20 Oct 2023 11:15:00 +0200 Subject: [PATCH] Fix chronicles --- webrtc/dtls/dtls.nim | 2 +- webrtc/sctp.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/dtls/dtls.nim b/webrtc/dtls/dtls.nim index 9b467ae..ca26f45 100644 --- a/webrtc/dtls/dtls.nim +++ b/webrtc/dtls/dtls.nim @@ -40,7 +40,7 @@ type DtlsConn* = ref object conn: StunConn laddr: TransportAddress - raddr: TransportAddress + raddr*: TransportAddress dataRecv: AsyncQueue[seq[byte]] sendFuture: Future[void] diff --git a/webrtc/sctp.nim b/webrtc/sctp.nim index daa5482..c1a66cb 100644 --- a/webrtc/sctp.nim +++ b/webrtc/sctp.nim @@ -347,7 +347,7 @@ proc readLoopProc(res: SctpConn) {.async.} = msg = await res.conn.read() data = usrsctp_dumppacket(unsafeAddr msg[0], uint(msg.len), SCTP_DUMP_INBOUND) 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_conninput(cast[pointer](res), unsafeAddr msg[0], uint(msg.len), 0)