Skip to content

Commit 4ff55da

Browse files
committed
Start pion/stun@v2
This is required to update pion/transport/v2 to v3 The public API of transport changed, and we expose transport as part of our public API.
1 parent 26873a1 commit 4ff55da

25 files changed

+14
-433
lines changed

Makefile

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ install:
3232
test-integration:
3333
@cd e2e && bash ./test.sh
3434
prepush: test lint test-integration
35-
check-api:
36-
@cd api && bash ./check.sh
3735
test:
3836
@./go.test.sh
3937
clean:

api/check.sh

-6
This file was deleted.

api/except.txt

-25
This file was deleted.

api/stun1.0.0.txt

-323
This file was deleted.

api/stun1.14.0.txt

-21
This file was deleted.

api/stun1.15.0.txt

-6
This file was deleted.

api/stun1.16.0.txt

-9
This file was deleted.

api/stun1.17.0.txt

-10
This file was deleted.

api/stun1.17.3.txt

-12
This file was deleted.

api/stun1.18.0.txt

-1
This file was deleted.

api/stun1.18.1.txt

-3
This file was deleted.

api/stun1.19.0.txt

-1
This file was deleted.

checks.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package stun
99
import (
1010
"errors"
1111

12-
"github.com/pion/stun/internal/hmac"
12+
"github.com/pion/stun/v2/internal/hmac"
1313
)
1414

1515
// CheckSize returns ErrAttrSizeInvalid if got is not equal to expected.

checks_debug.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
package stun
88

9-
import "github.com/pion/stun/internal/hmac"
9+
import "github.com/pion/stun/v2/internal/hmac"
1010

1111
// CheckSize returns *AttrLengthError if got is not equal to expected.
1212
func CheckSize(a AttrType, got, expected int) error {

cmd/stun-bench/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"sync/atomic"
1919
"time"
2020

21-
"github.com/pion/stun"
21+
"github.com/pion/stun/v2"
2222
)
2323

2424
var (

cmd/stun-client/stun_client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"log"
1111
"os"
1212

13-
"github.com/pion/stun"
13+
"github.com/pion/stun/v2"
1414
)
1515

1616
func main() {

cmd/stun-decode/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"log"
1212
"os"
1313

14-
"github.com/pion/stun"
14+
"github.com/pion/stun/v2"
1515
)
1616

1717
func main() {

cmd/stun-multiplex/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ that splits incoming UDP packets to two streams, "STUN Data" and "Application Da
55

66
Usage:
77
```sh
8-
$ go install github.com/pion/stun/cmd/stun-multiplex@latest
8+
$ go install github.com/pion/stun/v2/cmd/stun-multiplex@latest
99
```
1010

1111
On "server":
@@ -28,4 +28,4 @@ demultiplex: [123.131.100.200:34690]: Hello peer
2828
Got response from 123.131.100.200:34690: Hello peer
2929
```
3030

31-
On "server" you will see `demultiplex: [159.69.13.15:37551]: Hello peer` message.
31+
On "server" you will see `demultiplex: [159.69.13.15:37551]: Hello peer` message.

cmd/stun-multiplex/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"syscall"
1717
"time"
1818

19-
"github.com/pion/stun"
19+
"github.com/pion/stun/v2"
2020
)
2121

2222
func copyAddr(dst *stun.XORMappedAddress, src stun.XORMappedAddress) {

cmd/stun-nat-behaviour/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"time"
1515

1616
"github.com/pion/logging"
17-
"github.com/pion/stun"
17+
"github.com/pion/stun/v2"
1818
)
1919

2020
type stunServerConn struct {

cmd/stun-traversal/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strings"
1515
"time"
1616

17-
"github.com/pion/stun"
17+
"github.com/pion/stun/v2"
1818
)
1919

2020
var server = flag.String("server", "stun:stun.voipgate.com:3478", "Stun server address") //nolint:gochecknoglobals

e2e/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strings"
1212
"time"
1313

14-
"github.com/pion/stun"
14+
"github.com/pion/stun/v2"
1515
)
1616

1717
func test(network string) {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/pion/stun
1+
module github.com/pion/stun/v2
22

33
go 1.12
44

helpers_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
"testing"
1010

11-
"github.com/pion/stun/internal/testutil"
11+
"github.com/pion/stun/v2/internal/testutil"
1212
)
1313

1414
func BenchmarkBuildOverhead(b *testing.B) {

integrity.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import ( //nolint:gci
1010
"fmt"
1111
"strings"
1212

13-
"github.com/pion/stun/internal/hmac"
13+
"github.com/pion/stun/v2/internal/hmac"
1414
)
1515

1616
// separator for credentials.

0 commit comments

Comments
 (0)