revert tls.go

This commit is contained in:
patterniha
2026-07-10 00:59:28 +03:30
parent 600e701119
commit 129ee67b15
-9
View File
@@ -147,11 +147,6 @@ func GeneraticUClient(c net.Conn, config *tls.Config) *utls.UConn {
}
func copyConfig(c *tls.Config) *utls.Config {
curvePreferences := make([]utls.CurveID, 0, len(c.CurvePreferences))
for _, curve := range c.CurvePreferences {
curvePreferences = append(curvePreferences, utls.CurveID(curve))
}
config := &utls.Config{
Rand: c.Rand,
RootCAs: c.RootCAs,
@@ -161,10 +156,6 @@ func copyConfig(c *tls.Config) *utls.Config {
KeyLogWriter: c.KeyLogWriter,
EncryptedClientHelloConfigList: c.EncryptedClientHelloConfigList,
NextProtos: c.NextProtos,
CipherSuites: c.CipherSuites,
MinVersion: c.MinVersion,
MaxVersion: c.MaxVersion,
CurvePreferences: curvePreferences,
}
return config
}