Commands: Display Post-Quantum key exchange in tls ping (#4857)

https://github.com/XTLS/Xray-core/pull/4857#issuecomment-3064964301
This commit is contained in:
风扇滑翔翼 2025-07-19 09:14:56 +08:00 committed by GitHub
parent abd551e9f7
commit cbcab89c7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 37 additions and 10 deletions

View file

@ -486,11 +486,11 @@ func ConfigFromStreamSettings(settings *internet.MemoryStreamConfig) *Config {
func ParseCurveName(curveNames []string) []tls.CurveID {
curveMap := map[string]tls.CurveID{
"curvep256": tls.CurveP256,
"curvep384": tls.CurveP384,
"curvep521": tls.CurveP521,
"x25519": tls.X25519,
"x25519kyber768draft00": 0x6399,
"curvep256": tls.CurveP256,
"curvep384": tls.CurveP384,
"curvep521": tls.CurveP521,
"x25519": tls.X25519,
"x25519mlkem768": tls.X25519MLKEM768,
}
var curveIDs []tls.CurveID