From 92a924530d7b2f6787ddb7708bc9ccb62094cb00 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Wed, 15 Feb 2023 12:50:39 -0500 Subject: [PATCH] Update github.com/pion/udp to v2 transport/v2 was a breaking change to that API --- go.mod | 4 ++-- go.sum | 7 ++++--- listener.go | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 58c8d88..0bf0fd6 100644 --- a/go.mod +++ b/go.mod @@ -2,8 +2,8 @@ module github.com/pion/dtls/v2 require ( github.com/pion/logging v0.2.2 - github.com/pion/transport/v2 v2.0.0 - github.com/pion/udp v0.1.4 + github.com/pion/transport/v2 v2.0.1 + github.com/pion/udp/v2 v2.0.0 golang.org/x/crypto v0.5.0 golang.org/x/net v0.5.0 ) diff --git a/go.sum b/go.sum index d0dc961..37f8bad 100644 --- a/go.sum +++ b/go.sum @@ -3,10 +3,11 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pion/logging v0.2.2 h1:M9+AIj/+pxNsDfAT64+MAVgJO0rsyLnoJKCqf//DoeY= github.com/pion/logging v0.2.2/go.mod h1:k0/tDVsRCX2Mb2ZEmTqNa7CWsQPc+YYCB7Q+5pahoms= -github.com/pion/transport/v2 v2.0.0 h1:bsMYyqHCbkvHwj+eNCFBuxtlKndKfyGI2vaQmM3fIE4= github.com/pion/transport/v2 v2.0.0/go.mod h1:HS2MEBJTwD+1ZI2eSXSvHJx/HnzQqRy2/LXxt6eVMHc= -github.com/pion/udp v0.1.4 h1:OowsTmu1Od3sD6i3fQUJxJn2fEvJO6L1TidgadtbTI8= -github.com/pion/udp v0.1.4/go.mod h1:G8LDo56HsFwC24LIcnT4YIDU5qcB6NepqqjP0keL2us= +github.com/pion/transport/v2 v2.0.1 h1:cbSk3gzoSBEIKVGNYeghXQSp47s1H9ttoP5JyLCgxLE= +github.com/pion/transport/v2 v2.0.1/go.mod h1:93OYg91+mrGxKW+Jrgzmqr80kgXqD7J0yybOrdr7w0Y= +github.com/pion/udp/v2 v2.0.0 h1:7FnS6OF29BYNlQs2Jp2vdsmcwP5qKhHSlQXEb23I2II= +github.com/pion/udp/v2 v2.0.0/go.mod h1:oab6LX/gG7C25UL7EE9y8Vec+1MhqplU58J9E4trbeE= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= diff --git a/listener.go b/listener.go index bf80345..1920acd 100644 --- a/listener.go +++ b/listener.go @@ -5,7 +5,7 @@ import ( "github.com/pion/dtls/v2/pkg/protocol" "github.com/pion/dtls/v2/pkg/protocol/recordlayer" - "github.com/pion/udp" + "github.com/pion/udp/v2" ) // Listen creates a DTLS listener