From 0504d863407c1d14bf39478ba2335d299caac6ef Mon Sep 17 00:00:00 2001 From: Ludovic Chenut Date: Wed, 18 Oct 2023 14:05:50 +0200 Subject: [PATCH] add dtlsLocalCertificate --- webrtc/webrtc.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webrtc/webrtc.nim b/webrtc/webrtc.nim index 1c39eb8..1ce299a 100644 --- a/webrtc/webrtc.nim +++ b/webrtc/webrtc.nim @@ -25,6 +25,9 @@ type sctp*: Sctp port: int +proc dtlsLocalCertificate(w: WebRTC): seq[byte] = + w.dtls.localCertificate() + proc new*(T: typedesc[WebRTC], address: TransportAddress): T = var webrtc = T(udp: UdpConn(), stun: StunConn(), dtls: Dtls()) webrtc.udp.init(address)