diff --git a/go.mod b/go.mod index 532d1c12d..8eae58a6c 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,7 @@ require ( github.com/eycorsican/go-tun2socks v1.16.11 github.com/google/go-licenses v1.6.0 github.com/google/gopacket v1.1.19 + github.com/gorilla/websocket v1.5.3 github.com/shadowsocks/go-shadowsocks2 v0.1.5 github.com/stretchr/testify v1.8.4 github.com/things-go/go-socks5 v0.0.5 diff --git a/go.sum b/go.sum index 178ce84ec..46af40a98 100644 --- a/go.sum +++ b/go.sum @@ -205,6 +205,8 @@ github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/Oth github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= +github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= +github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= diff --git a/x/websocket/endpoint.go b/websocket/endpoint.go similarity index 100% rename from x/websocket/endpoint.go rename to websocket/endpoint.go diff --git a/x/websocket/endpoint_test.go b/websocket/endpoint_test.go similarity index 100% rename from x/websocket/endpoint_test.go rename to websocket/endpoint_test.go diff --git a/x/configurl/websocket.go b/x/configurl/websocket.go index abfb614fc..5d0576ccc 100644 --- a/x/configurl/websocket.go +++ b/x/configurl/websocket.go @@ -23,7 +23,7 @@ import ( "strings" "github.com/Jigsaw-Code/outline-sdk/transport" - "github.com/Jigsaw-Code/outline-sdk/x/websocket" + "github.com/Jigsaw-Code/outline-sdk/websocket" ) type wsConfig struct { diff --git a/x/examples/ws2endpoint/main.go b/x/examples/ws2endpoint/main.go index 1391a3023..73934ff3c 100644 --- a/x/examples/ws2endpoint/main.go +++ b/x/examples/ws2endpoint/main.go @@ -27,8 +27,8 @@ import ( "time" "github.com/Jigsaw-Code/outline-sdk/transport" + "github.com/Jigsaw-Code/outline-sdk/websocket" "github.com/Jigsaw-Code/outline-sdk/x/configurl" - "github.com/Jigsaw-Code/outline-sdk/x/websocket" "github.com/lmittmann/tint" "golang.org/x/term" )