Remove compatibility codes

This commit is contained in:
世界
2025-09-17 18:12:51 +08:00
parent cb4deb0c20
commit 9ac0539ffd
13 changed files with 17 additions and 184 deletions

View File

@@ -1,5 +1,3 @@
//go:build go1.20
package dialer
import (
@@ -32,7 +30,7 @@ type slowOpenConn struct {
err error
}
func DialSlowContext(dialer *tcpDialer, ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error) {
func DialSlowContext(dialer *tfo.Dialer, ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error) {
if dialer.DisableTFO || N.NetworkName(network) != N.NetworkTCP {
switch N.NetworkName(network) {
case N.NetworkTCP, N.NetworkUDP: