Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/pion/transport/v4/packetio"
"github.com/pion/transport/v4/stdnet"
"github.com/pion/transport/v4/vnet"
"github.com/pion/turn/v4"
"github.com/pion/turn/v5"
"golang.org/x/net/proxy"
)

Expand Down
2 changes: 1 addition & 1 deletion candidate_relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

"github.com/pion/stun/v3"
"github.com/pion/transport/v4/test"
"github.com/pion/turn/v4"
"github.com/pion/turn/v5"
"github.com/stretchr/testify/require"
)

Expand All @@ -34,7 +34,7 @@

server, err := turn.NewServer(turn.ServerConfig{
Realm: "pion.ly",
AuthHandler: optimisticAuthHandler,

Check failure on line 37 in candidate_relay_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.24) / Go macOS 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 37 in candidate_relay_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.25) / Go macOS 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 37 in candidate_relay_test.go

View workflow job for this annotation

GitHub Actions / test (1.24) / Go 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 37 in candidate_relay_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 37 in candidate_relay_test.go

View workflow job for this annotation

GitHub Actions / test (1.25) / Go 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal
PacketConnConfigs: []turn.PacketConnConfig{
{
PacketConn: serverListener,
Expand Down
2 changes: 1 addition & 1 deletion candidate_server_reflexive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

"github.com/pion/stun/v3"
"github.com/pion/transport/v4/test"
"github.com/pion/turn/v4"
"github.com/pion/turn/v5"
"github.com/stretchr/testify/require"
)

Expand All @@ -30,7 +30,7 @@

server, err := turn.NewServer(turn.ServerConfig{
Realm: "pion.ly",
AuthHandler: optimisticAuthHandler,

Check failure on line 33 in candidate_server_reflexive_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.24) / Go macOS 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 33 in candidate_server_reflexive_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.25) / Go macOS 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 33 in candidate_server_reflexive_test.go

View workflow job for this annotation

GitHub Actions / test (1.24) / Go 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 33 in candidate_server_reflexive_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 33 in candidate_server_reflexive_test.go

View workflow job for this annotation

GitHub Actions / test (1.25) / Go 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal
PacketConnConfigs: []turn.PacketConnConfig{
{
PacketConn: serverListener,
Expand Down
2 changes: 1 addition & 1 deletion connectivity_vnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"github.com/pion/stun/v3"
"github.com/pion/transport/v4/test"
"github.com/pion/transport/v4/vnet"
"github.com/pion/turn/v4"
"github.com/pion/turn/v5"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -173,7 +173,7 @@
return nil, err
}
server, err := turn.NewServer(turn.ServerConfig{
AuthHandler: func(username, realm string, _ net.Addr) (key []byte, ok bool) {

Check failure on line 176 in connectivity_vnet_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.24) / Go macOS 1.24

cannot use func(username, realm string, _ net.Addr) (key []byte, ok bool) {…} (value of type func(username string, realm string, _ "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 176 in connectivity_vnet_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.25) / Go macOS 1.25

cannot use func(username, realm string, _ net.Addr) (key []byte, ok bool) {…} (value of type func(username string, realm string, _ "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 176 in connectivity_vnet_test.go

View workflow job for this annotation

GitHub Actions / test (1.24) / Go 1.24

cannot use func(username, realm string, _ net.Addr) (key []byte, ok bool) {…} (value of type func(username string, realm string, _ "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 176 in connectivity_vnet_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

cannot use func(username, realm string, _ net.Addr) (key []byte, ok bool) {…} (value of type func(username string, realm string, _ "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 176 in connectivity_vnet_test.go

View workflow job for this annotation

GitHub Actions / test (1.25) / Go 1.25

cannot use func(username, realm string, _ net.Addr) (key []byte, ok bool) {…} (value of type func(username string, realm string, _ "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal
if pw, ok := credMap[username]; ok {
return turn.GenerateAuthKey(username, realm, pw), true
}
Expand Down
2 changes: 1 addition & 1 deletion gather.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/pion/logging"
"github.com/pion/stun/v3"
"github.com/pion/transport/v4/stdnet"
"github.com/pion/turn/v4"
"github.com/pion/turn/v5"
)

type turnClient interface {
Expand Down
2 changes: 1 addition & 1 deletion gather_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
transport "github.com/pion/transport/v4"
"github.com/pion/transport/v4/test"
"github.com/pion/transport/v4/vnet"
"github.com/pion/turn/v4"
"github.com/pion/turn/v5"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/net/proxy"
Expand Down Expand Up @@ -262,7 +262,7 @@

server, err := turn.NewServer(turn.ServerConfig{
Realm: "pion.ly",
AuthHandler: optimisticAuthHandler,

Check failure on line 265 in gather_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.24) / Go macOS 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 265 in gather_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.25) / Go macOS 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 265 in gather_test.go

View workflow job for this annotation

GitHub Actions / test (1.24) / Go 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 265 in gather_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 265 in gather_test.go

View workflow job for this annotation

GitHub Actions / test (1.25) / Go 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal
PacketConnConfigs: []turn.PacketConnConfig{
{
PacketConn: serverListener,
Expand Down Expand Up @@ -364,7 +364,7 @@

server, err := turn.NewServer(turn.ServerConfig{
Realm: "pion.ly",
AuthHandler: optimisticAuthHandler,

Check failure on line 367 in gather_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.24) / Go macOS 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 367 in gather_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.25) / Go macOS 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 367 in gather_test.go

View workflow job for this annotation

GitHub Actions / test (1.24) / Go 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 367 in gather_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 367 in gather_test.go

View workflow job for this annotation

GitHub Actions / test (1.25) / Go 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal
PacketConnConfigs: packetConnConfigs,
ListenerConfigs: listenerConfigs,
})
Expand Down Expand Up @@ -477,7 +477,7 @@

server, err := turn.NewServer(turn.ServerConfig{
Realm: "pion.ly",
AuthHandler: optimisticAuthHandler,

Check failure on line 480 in gather_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.24) / Go macOS 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 480 in gather_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.25) / Go macOS 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 480 in gather_test.go

View workflow job for this annotation

GitHub Actions / test (1.24) / Go 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 480 in gather_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 480 in gather_test.go

View workflow job for this annotation

GitHub Actions / test (1.25) / Go 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal
PacketConnConfigs: []turn.PacketConnConfig{
{
PacketConn: serverListener,
Expand Down Expand Up @@ -550,7 +550,7 @@

server, err := turn.NewServer(turn.ServerConfig{
Realm: "pion.ly",
AuthHandler: optimisticAuthHandler,

Check failure on line 553 in gather_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.24) / Go macOS 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 553 in gather_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.25) / Go macOS 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 553 in gather_test.go

View workflow job for this annotation

GitHub Actions / test (1.24) / Go 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 553 in gather_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 553 in gather_test.go

View workflow job for this annotation

GitHub Actions / test (1.25) / Go 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal
PacketConnConfigs: []turn.PacketConnConfig{
{
PacketConn: serverListener,
Expand Down Expand Up @@ -606,7 +606,7 @@

server, err := turn.NewServer(turn.ServerConfig{
Realm: "pion.ly",
AuthHandler: optimisticAuthHandler,

Check failure on line 609 in gather_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.24) / Go macOS 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 609 in gather_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.25) / Go macOS 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 609 in gather_test.go

View workflow job for this annotation

GitHub Actions / test (1.24) / Go 1.24

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 609 in gather_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal

Check failure on line 609 in gather_test.go

View workflow job for this annotation

GitHub Actions / test (1.25) / Go 1.25

cannot use optimisticAuthHandler (value of type func(string, string, "net".Addr) (key []byte, ok bool)) as turn.AuthHandler value in struct literal
PacketConnConfigs: []turn.PacketConnConfig{
{
PacketConn: listener,
Expand Down
2 changes: 1 addition & 1 deletion gather_vnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"github.com/pion/stun/v3"
"github.com/pion/transport/v4/test"
"github.com/pion/transport/v4/vnet"
"github.com/pion/turn/v4"
"github.com/pion/turn/v5"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -453,7 +453,7 @@
RelayAddressGenerator: relayGenerator,
},
},
AuthHandler: func(username, realm string, srcAddr net.Addr) ([]byte, bool) {

Check failure on line 456 in gather_vnet_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.24) / Go macOS 1.24

cannot use func(username, realm string, srcAddr net.Addr) ([]byte, bool) {…} (value of type func(username string, realm string, srcAddr "net".Addr) ([]byte, bool)) as turn.AuthHandler value in struct literal

Check failure on line 456 in gather_vnet_test.go

View workflow job for this annotation

GitHub Actions / test-macos (1.25) / Go macOS 1.25

cannot use func(username, realm string, srcAddr net.Addr) ([]byte, bool) {…} (value of type func(username string, realm string, srcAddr "net".Addr) ([]byte, bool)) as turn.AuthHandler value in struct literal

Check failure on line 456 in gather_vnet_test.go

View workflow job for this annotation

GitHub Actions / test (1.24) / Go 1.24

cannot use func(username, realm string, srcAddr net.Addr) ([]byte, bool) {…} (value of type func(username string, realm string, srcAddr "net".Addr) ([]byte, bool)) as turn.AuthHandler value in struct literal

Check failure on line 456 in gather_vnet_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

cannot use func(username, realm string, srcAddr net.Addr) ([]byte, bool) {…} (value of type func(username string, realm string, srcAddr "net".Addr) ([]byte, bool)) as turn.AuthHandler value in struct literal (typecheck)

Check failure on line 456 in gather_vnet_test.go

View workflow job for this annotation

GitHub Actions / test (1.25) / Go 1.25

cannot use func(username, realm string, srcAddr net.Addr) ([]byte, bool) {…} (value of type func(username string, realm string, srcAddr "net".Addr) ([]byte, bool)) as turn.AuthHandler value in struct literal
if username != turnUser {
return nil, false
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/pion/ice/v4

go 1.21

Check failure on line 3 in go.mod

View workflow job for this annotation

GitHub Actions / lint / Metadata

Invalid Go version

Found 1.21. Expected 1.24

require (
github.com/google/uuid v1.6.0
Expand All @@ -10,7 +10,7 @@
github.com/pion/randutil v0.1.0
github.com/pion/stun/v3 v3.1.1
github.com/pion/transport/v4 v4.0.1
github.com/pion/turn/v4 v4.1.4
github.com/pion/turn/v5 v5.0.2
github.com/stretchr/testify v1.11.1
golang.org/x/net v0.35.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ github.com/pion/transport/v3 v3.1.1 h1:Tr684+fnnKlhPceU+ICdrw6KKkTms+5qHMgw6bIkY
github.com/pion/transport/v3 v3.1.1/go.mod h1:+c2eewC5WJQHiAA46fkMMzoYZSuGzA/7E2FPrOYHctQ=
github.com/pion/transport/v4 v4.0.1 h1:sdROELU6BZ63Ab7FrOLn13M6YdJLY20wldXW2Cu2k8o=
github.com/pion/transport/v4 v4.0.1/go.mod h1:nEuEA4AD5lPdcIegQDpVLgNoDGreqM/YqmEx3ovP4jM=
github.com/pion/turn/v4 v4.1.4 h1:EU11yMXKIsK43FhcUnjLlrhE4nboHZq+TXBIi3QpcxQ=
github.com/pion/turn/v4 v4.1.4/go.mod h1:ES1DXVFKnOhuDkqn9hn5VJlSWmZPaRJLyBXoOeO/BmQ=
github.com/pion/turn/v5 v5.0.2 h1:GHlDk+fiegz+yibb3ch+tK+iPFokoVWiM+aVJakySqA=
github.com/pion/turn/v5 v5.0.2/go.mod h1:cumcsSEF2ytAtDhDwkYgYhv1uJ3AOP7a4pFt0NL/snY=
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/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
Expand Down
Loading