mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 18:17:52 -05:00
17 lines
279 B
Go
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")
|
|
}
|
|
}
|