1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-10 21:18:28 -04:00
v2fly/transport/internet/tls/tls13_workaround.go
2019-04-16 19:31:41 +08:00

17 lines
279 B
Go

// +build !confonly
package tls
import (
"os"
"strings"
)
func init() {
// opt-in TLS 1.3 for Go1.12
// TODO: remove this line when Go1.13 is released.
if !strings.Contains(os.Getenv("GODEBUG"), "tls13") {
_ = os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
}
}