diff --git a/go.mod b/go.mod index 77d59a9a..e4ab66ee 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/metacubex/mihomo go 1.20 require ( + filippo.io/edwards25519 v1.1.0 github.com/bahlo/generic-list-go v0.2.0 github.com/coreos/go-iptables v0.8.0 github.com/dlclark/regexp2 v1.11.5 @@ -64,8 +65,6 @@ require ( gopkg.in/yaml.v3 v3.0.1 ) -require filippo.io/edwards25519 v1.1.0 - require ( github.com/RyuaNerin/go-krypto v1.3.0 // indirect github.com/Yawning/aez v0.0.0-20211027044916-e49e68abd344 // indirect diff --git a/transport/sudoku/obfs/httpmask/tunnel.go b/transport/sudoku/obfs/httpmask/tunnel.go index 3e0b6aa1..65449408 100644 --- a/transport/sudoku/obfs/httpmask/tunnel.go +++ b/transport/sudoku/obfs/httpmask/tunnel.go @@ -5,21 +5,22 @@ import ( "bytes" "context" crand "crypto/rand" - "crypto/tls" "encoding/base64" "errors" "fmt" "io" mrand "math/rand" "net" - "net/http" - "net/http/httputil" "net/url" "os" "strconv" "strings" "sync" "time" + + "github.com/metacubex/http" + "github.com/metacubex/http/httputil" + "github.com/metacubex/tls" ) type TunnelMode string