Skip to content

Commit

Permalink
Update module github.com/pion/stun to v2
Browse files Browse the repository at this point in the history
Generated by renovateBot
  • Loading branch information
renovate[bot] authored and Sean-Der committed Sep 8, 2023
1 parent 49cf170 commit 009cb4c
Show file tree
Hide file tree
Showing 46 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"time"

"github.com/pion/logging"
"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/transport/v3"
"github.com/pion/transport/v3/stdnet"
"github.com/pion/turn/v3/internal/client"
Expand Down
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"time"

"github.com/pion/logging"
"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/turn/v3/internal/proto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion examples/turn-server/add-software-attribute/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strconv"
"syscall"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/turn/v3"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/turn-server/log/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strconv"
"syscall"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/turn/v3"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.13
require (
github.com/pion/logging v0.2.2
github.com/pion/randutil v0.1.0
github.com/pion/stun v0.6.1
github.com/pion/stun/v2 v2.0.0
github.com/pion/transport/v3 v3.0.1
github.com/stretchr/testify v1.8.4
golang.org/x/sys v0.11.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ 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/randutil v0.1.0 h1:CFG1UdESneORglEsnimhUjf33Rwjubwj6xfiOXBa3mA=
github.com/pion/randutil v0.1.0/go.mod h1:XcJrSMMbbMRhASFVOlj/5hQial/Y8oH/HVo7TBZq+j8=
github.com/pion/stun v0.6.1 h1:8lp6YejULeHBF8NmV8e2787BogQhduZugh5PdhDyyN4=
github.com/pion/stun v0.6.1/go.mod h1:/hO7APkX4hZKu/D0f2lHzNyvdkTGtIy3NDmLR7kSz/8=
github.com/pion/stun/v2 v2.0.0 h1:A5+wXKLAypxQri59+tmQKVs7+l6mMM+3d+eER9ifRU0=
github.com/pion/stun/v2 v2.0.0/go.mod h1:22qRSh08fSEttYUmJZGlriq9+03jtVmXNODgLccj8GQ=
github.com/pion/transport/v2 v2.2.1 h1:7qYnCBlpgSJNYMbLCKuSY9KbQdBFoETvPNETv0y4N7c=
github.com/pion/transport/v2 v2.2.1/go.mod h1:cXXWavvCnFF6McHTft3DWS9iic2Mftcz1Aq29pGcU5g=
github.com/pion/transport/v3 v3.0.1 h1:gDTlPJwROfSfz6QfSi0ZmeCSkFcnWWiiR9ES0ouANiM=
Expand Down
2 changes: 1 addition & 1 deletion internal/allocation/allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"

"github.com/pion/logging"
"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/turn/v3/internal/ipnet"
"github.com/pion/turn/v3/internal/proto"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/allocation/allocation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"testing"
"time"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/turn/v3/internal/ipnet"
"github.com/pion/turn/v3/internal/proto"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion internal/client/allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"

"github.com/pion/logging"
"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/transport/v3"
"github.com/pion/turn/v3/internal/proto"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package client
import (
"net"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

// Client is an interface for the public turn.Client in order to break cyclic dependencies
Expand Down
2 changes: 1 addition & 1 deletion internal/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package client
import (
"net"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

type mockClient struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/client/tcp_alloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net"
"time"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/transport/v3"
"github.com/pion/turn/v3/internal/proto"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/client/tcp_conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/pion/logging"
"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/transport/v3"
"github.com/pion/turn/v3/internal/proto"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion internal/client/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/client/udp_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"net"
"time"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/turn/v3/internal/proto"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/client/udp_conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/proto/chann.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"errors"
"strconv"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

// ChannelNumber represents CHANNEL-NUMBER attribute.
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/chann_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/proto/chrome_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"encoding/hex"
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

func TestChromeAllocRequest(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/connection_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package proto
import (
"encoding/binary"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

// ConnectionID represents CONNECTION-ID attribute.
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

package proto

import "github.com/pion/stun"
import "github.com/pion/stun/v2"

// Data represents DATA attribute.
//
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"errors"
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/proto/dontfrag.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package proto

import (
"github.com/pion/stun"
"github.com/pion/stun/v2"
)

// DontFragmentAttr is a deprecated alias for DontFragment
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/dontfrag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package proto
import (
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

func TestDontFragment(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/evenport.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

package proto

import "github.com/pion/stun"
import "github.com/pion/stun/v2"

// EvenPort represents EVEN-PORT attribute.
//
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/evenport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/proto/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

type attr interface {
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/lifetime.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"encoding/binary"
"time"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

// DefaultLifetime in RFC 5766 is 10 minutes.
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/lifetime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/proto/peeraddr.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package proto
import (
"net"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

// PeerAddress implements XOR-PEER-ADDRESS attribute.
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/peeraddr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/proto/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package proto

import (
"github.com/pion/stun"
"github.com/pion/stun/v2"
)

// Default ports for TURN from RFC 5766 Section 4.
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/relayedaddr.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package proto
import (
"net"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

// RelayedAddress implements XOR-RELAYED-ADDRESS attribute.
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/relayedaddr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/proto/reqfamily.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package proto
import (
"errors"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

// RequestedAddressFamily represents the REQUESTED-ADDRESS-FAMILY Attribute as
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/reqfamily_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

func TestRequestedAddressFamily(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/reqtrans.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package proto
import (
"strconv"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

// Protocol is IANA assigned protocol number.
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/reqtrans_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

func TestRequestedTransport(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/rsrvtoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

package proto

import "github.com/pion/stun"
import "github.com/pion/stun/v2"

// ReservationToken represents RESERVATION-TOKEN attribute.
//
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/rsrvtoken_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"errors"
"testing"

"github.com/pion/stun"
"github.com/pion/stun/v2"
)

func TestReservationToken(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"

"github.com/pion/logging"
"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/turn/v3/internal/allocation"
"github.com/pion/turn/v3/internal/proto"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/server/stun.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package server

import (
"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/turn/v3/internal/ipnet"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/server/turn.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"net"

"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/turn/v3/internal/allocation"
"github.com/pion/turn/v3/internal/ipnet"
"github.com/pion/turn/v3/internal/proto"
Expand Down
2 changes: 1 addition & 1 deletion internal/server/turn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"time"

"github.com/pion/logging"
"github.com/pion/stun"
"github.com/pion/stun/v2"
"github.com/pion/turn/v3/internal/allocation"
"github.com/pion/turn/v3/internal/proto"
"github.com/stretchr/testify/assert"
Expand Down
Loading

0 comments on commit 009cb4c

Please sign in to comment.