RPRX 7 months ago committed by GitHub
parent
commit
61800fcc66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      transport/internet/reality/reality.go
  2. 5
      transport/internet/tls/config.go

2
transport/internet/reality/reality.go

@ -116,8 +116,6 @@ func UClient(c net.Conn, config *Config, ctx context.Context, dest net.Destinati
}
if utlsConfig.ServerName == "" {
utlsConfig.ServerName = dest.Address.String()
} else if strings.ToLower(utlsConfig.ServerName) == "nosni" { // If ServerName is set to "nosni", we set it empty.
utlsConfig.ServerName = ""
}
uConn.ServerName = utlsConfig.ServerName
fingerprint := tls.GetFingerprint(config.Fingerprint)

5
transport/internet/tls/config.go

@ -325,11 +325,6 @@ func (c *Config) GetTLSConfig(opts ...Option) *tls.Config {
config.ServerName = sn
}
// If ServerName is set to "nosni", we set it empty.
if strings.ToLower(c.parseServerName()) == "nosni" {
config.ServerName = ""
}
if len(config.NextProtos) == 0 {
config.NextProtos = []string{"h2", "http/1.1"}
}

Loading…
Cancel
Save