diff --git a/go.mod b/go.mod index 57cc35de..36aa0084 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,6 @@ go 1.19 require ( github.com/cilium/ebpf v0.9.3 github.com/coreos/go-iptables v0.6.0 - github.com/database64128/tfo-go v1.1.2 github.com/dlclark/regexp2 v1.7.0 github.com/go-chi/chi/v5 v5.0.7 github.com/go-chi/cors v1.2.1 @@ -49,6 +48,7 @@ replace github.com/sagernet/sing-tun => github.com/MetaCubeX/sing-tun v0.0.0-202 require ( github.com/ajg/form v1.5.1 // indirect + github.com/database64128/tfo-go/v2 v2.0.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fsnotify/fsnotify v1.5.4 // indirect github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect diff --git a/go.sum b/go.sum index 06551cdc..82a2def7 100644 --- a/go.sum +++ b/go.sum @@ -13,6 +13,8 @@ github.com/coreos/go-iptables v0.6.0 h1:is9qnZMPYjLd8LYqmm/qlE+wwEgJIkTYdhV3rfZo github.com/coreos/go-iptables v0.6.0/go.mod h1:Qe8Bv2Xik5FyTXwgIbLAnv2sWSBmvWdFETJConOQ//Q= github.com/database64128/tfo-go v1.1.2 h1:GwxtJp09BdUTVEoeT421t231eNZoGOCRkklbl4WI1kU= github.com/database64128/tfo-go v1.1.2/go.mod h1:jgrSUPyOvTGQyn6irCOpk7L2W/q/0VLZZcovQiMi+bI= +github.com/database64128/tfo-go/v2 v2.0.2 h1:5rGgkJeLEKlNaqredfrPQNLnctn1b+1fq/8tdKdOzJg= +github.com/database64128/tfo-go/v2 v2.0.2/go.mod h1:FDdt4JaAsRU66wsYHxSVytYimPkKIHupVsxM+5DhvjY= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/listener/http/server.go b/listener/http/server.go index bd3a198d..f507fac7 100644 --- a/listener/http/server.go +++ b/listener/http/server.go @@ -2,7 +2,7 @@ package http import ( "context" - "github.com/database64128/tfo-go" + "github.com/database64128/tfo-go/v2" "net" "github.com/Dreamacro/clash/common/cache" diff --git a/listener/mixed/mixed.go b/listener/mixed/mixed.go index acdcff33..0fcaa80f 100644 --- a/listener/mixed/mixed.go +++ b/listener/mixed/mixed.go @@ -2,7 +2,7 @@ package mixed import ( "context" - "github.com/database64128/tfo-go" + "github.com/database64128/tfo-go/v2" "net" "github.com/Dreamacro/clash/common/cache" diff --git a/listener/socks/tcp.go b/listener/socks/tcp.go index 8b505e74..13a33d1b 100644 --- a/listener/socks/tcp.go +++ b/listener/socks/tcp.go @@ -2,7 +2,7 @@ package socks import ( "context" - "github.com/database64128/tfo-go" + "github.com/database64128/tfo-go/v2" "io" "net"