Skip to content

Commit

Permalink
Release /v2
Browse files Browse the repository at this point in the history
We may have issues still, but this contains all the
features we care about!
  • Loading branch information
Sean-Der committed Jan 9, 2020
1 parent 1f0b297 commit 9aa183e
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/pion/logging"
"github.com/pion/stun"
"github.com/pion/transport/vnet"
"github.com/pion/turn/internal/client"
"github.com/pion/turn/internal/proto"
"github.com/pion/turn/v2/internal/client"
"github.com/pion/turn/v2/internal/proto"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion examples/turn-client/main.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/turn"
"github.com/pion/turn/v2"
)

func main() {
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 @@ -11,7 +11,7 @@ import (
"syscall"

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

// attributeAdder wraps a PacketConn and appends the SOFTWARE attribute to STUN packets
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 @@ -12,7 +12,7 @@ import (
"syscall"

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

// stunLogger wraps a PacketConn and prints incoming/outgoing STUN packets
Expand Down
2 changes: 1 addition & 1 deletion examples/turn-server/simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strconv"
"syscall"

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

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

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

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pion/turn
module github.com/pion/turn/v2

go 1.13

Expand Down
4 changes: 2 additions & 2 deletions internal/allocation/allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

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

// Allocation is tied to a FiveTuple and relays traffic
Expand Down
2 changes: 1 addition & 1 deletion internal/allocation/allocation_manager_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/turn/internal/proto"
"github.com/pion/turn/v2/internal/proto"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/allocation/allocation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"github.com/pion/stun"
"github.com/pion/turn/internal/ipnet"
"github.com/pion/turn/internal/proto"
"github.com/pion/turn/v2/internal/ipnet"
"github.com/pion/turn/v2/internal/proto"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/allocation/channel_bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"

"github.com/pion/logging"
"github.com/pion/turn/internal/proto"
"github.com/pion/turn/v2/internal/proto"
)

// ChannelBind represents a TURN Channel
Expand Down
2 changes: 1 addition & 1 deletion internal/allocation/channel_bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

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

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

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

const (
Expand Down
4 changes: 2 additions & 2 deletions internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

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

// Request contains all the state needed to process a single incoming datagram
Expand Down
2 changes: 1 addition & 1 deletion internal/server/stun.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package server

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

func handleBindingRequest(r Request, m *stun.Message) error {
Expand Down
6 changes: 3 additions & 3 deletions internal/server/turn.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"net"

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

// // https://tools.ietf.org/html/rfc5766#section-6.2
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 @@ -5,7 +5,7 @@ import (
"time"

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

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

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

const (
Expand Down
6 changes: 3 additions & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"time"

"github.com/pion/logging"
"github.com/pion/turn/internal/allocation"
"github.com/pion/turn/internal/proto"
"github.com/pion/turn/internal/server"
"github.com/pion/turn/v2/internal/allocation"
"github.com/pion/turn/v2/internal/proto"
"github.com/pion/turn/v2/internal/server"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/pion/logging"
"github.com/pion/transport/test"
"github.com/pion/transport/vnet"
"github.com/pion/turn/internal/proto"
"github.com/pion/turn/v2/internal/proto"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion stun_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

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

var errInvalidTURNFrame = errors.New("data is not a valid TURN frame, no STUN or ChannelData found")
Expand Down

0 comments on commit 9aa183e

Please sign in to comment.