mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 11:29:36 +03:00
Revert "nosni"
https://github.com/XTLS/Xray-core/pull/3214#issuecomment-2078502477
This commit is contained in:
@ -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"}
|
||||
}
|
||||
|
Reference in New Issue
Block a user