mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-07-25 11:24:15 +00:00
Update CurvePreferences
This commit is contained in:
parent
69771102ae
commit
d8557bf279
1 changed files with 5 additions and 5 deletions
|
@ -486,11 +486,11 @@ func ConfigFromStreamSettings(settings *internet.MemoryStreamConfig) *Config {
|
||||||
|
|
||||||
func ParseCurveName(curveNames []string) []tls.CurveID {
|
func ParseCurveName(curveNames []string) []tls.CurveID {
|
||||||
curveMap := map[string]tls.CurveID{
|
curveMap := map[string]tls.CurveID{
|
||||||
"curvep256": tls.CurveP256,
|
"curvep256": tls.CurveP256,
|
||||||
"curvep384": tls.CurveP384,
|
"curvep384": tls.CurveP384,
|
||||||
"curvep521": tls.CurveP521,
|
"curvep521": tls.CurveP521,
|
||||||
"x25519": tls.X25519,
|
"x25519": tls.X25519,
|
||||||
"x25519kyber768draft00": 0x6399,
|
"x25519mlkem768": tls.X25519MLKEM768,
|
||||||
}
|
}
|
||||||
|
|
||||||
var curveIDs []tls.CurveID
|
var curveIDs []tls.CurveID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue