mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-11 23:06:33 +00:00
TUN-829: prefer p256 curve
This commit is contained in:
parent
cefcb79b75
commit
f958536aac
@ -60,7 +60,8 @@ func (f CLIFlags) finishGettingConfig(c *cli.Context, config *tls.Config) *tls.C
|
|||||||
if c.IsSet(f.RootCA) {
|
if c.IsSet(f.RootCA) {
|
||||||
config.RootCAs = LoadCert(c.String(f.RootCA))
|
config.RootCAs = LoadCert(c.String(f.RootCA))
|
||||||
}
|
}
|
||||||
|
// we optimize CurveP256
|
||||||
|
config.CurvePreferences = []tls.CurveID{tls.CurveP256}
|
||||||
return config
|
return config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user