update snowflake to use pion webrtc v4

This commit is contained in:
Shelikhoo 2024-11-12 15:46:17 +00:00
parent 290be512e3
commit 239357509f
No known key found for this signature in database
GPG key ID: 4C9764E9FE80A3DC
9 changed files with 33 additions and 86 deletions

View file

@ -30,6 +30,7 @@ import (
"crypto/rand"
"encoding/base64"
"fmt"
"github.com/pion/ice/v4"
"io"
"log"
"net"
@ -40,8 +41,7 @@ import (
"time"
"github.com/gorilla/websocket"
"github.com/pion/ice/v2"
"github.com/pion/transport/v2/stdnet"
"github.com/pion/transport/v3/stdnet"
"github.com/pion/webrtc/v4"
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/event"