Remove usage of ShadowConn for ssHandler and ssConnector (#68)

The new ss library has integrated the function of ShadowConn.
This commit is contained in:
RMT
2025-12-29 16:22:42 +08:00
committed by GitHub
parent 77eda4ce00
commit 6389378610
5 changed files with 7 additions and 20 deletions
+1 -2
View File
@@ -19,7 +19,6 @@ import (
ictx "github.com/go-gost/x/internal/ctx"
xnet "github.com/go-gost/x/internal/net"
"github.com/go-gost/x/internal/util/sniffing"
"github.com/go-gost/x/internal/util/ss"
tls_util "github.com/go-gost/x/internal/util/tls"
rate_limiter "github.com/go-gost/x/limiter/rate"
xstats "github.com/go-gost/x/observer/stats"
@@ -141,7 +140,7 @@ func (h *ssHandler) Handle(ctx context.Context, conn net.Conn, opts ...handler.H
return
}
target := wrappedConn.Target()
conn = ss.ShadowConn(wrappedConn, nil)
conn = wrappedConn
conn.SetReadDeadline(time.Now().Add(h.md.readTimeout))