add dtlsLocalCertificate
This commit is contained in:
parent
2309d9718e
commit
0504d86340
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue