Skip to content

Instantly share code, notes, and snippets.

@tobiasfriden
tobiasfriden / Dockerfile
Last active October 1, 2024 08:06
Gstreamer WebRTC python demo working Dockerfile
FROM maxmcd/gstreamer:1.14-buster
WORKDIR /usr/src
RUN apt-get update && apt-get install -y python3-pip \
pkg-config \
libcairo2-dev \
gcc \
python3-dev \
libgirepository1.0-dev \
@tobiasfriden
tobiasfriden / Dockerfile
Last active March 11, 2021 15:29
Janus/Debian buster Dockerfile
FROM debian:buster
LABEL maintainer="Tobias Fridén"
LABEL description="Provides an image with Janus Gateway on Debian buster"
RUN apt-get update -y \
&& apt-get upgrade -y
RUN apt-get install -y \
build-essential \
diff --git a/pkg/dtls/conn.go b/pkg/dtls/conn.go
index 9060bf3..69db502 100644
--- a/pkg/dtls/conn.go
+++ b/pkg/dtls/conn.go
@@ -87,7 +87,7 @@ func createConn(nextConn net.Conn, timerThread timerThread, handshakeMessageHand
c.localRandom.populate()
if !isClient {
c.cookie = make([]byte, cookieLength)
- c.localKeypair, _ = generateKeypair(namedCurveX25519)
+ c.localKeypair, _ = generateKeypair(namedCurveP256)