mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-13 20:28:32 +10:00
18 lines
359 B
Go
18 lines
359 B
Go
//go:build with_cloudflared
|
|
|
|
package cloudflare
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"crypto/x509"
|
|
)
|
|
|
|
func newEdgeTLSConfig(rootCAs *x509.CertPool, serverName string, nextProtos []string) *tls.Config {
|
|
return &tls.Config{
|
|
RootCAs: rootCAs,
|
|
ServerName: serverName,
|
|
NextProtos: nextProtos,
|
|
CurvePreferences: []tls.CurveID{tls.CurveP256},
|
|
}
|
|
}
|