add dtlsLocalCertificate

This commit is contained in:
Ludovic Chenut 2023-10-18 14:05:50 +02:00
parent 2309d9718e
commit 0504d86340
No known key found for this signature in database
GPG Key ID: D9A59B1907F1D50C
1 changed files with 3 additions and 0 deletions

View File

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