mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-17 07:37:15 +00:00
fix(sub): enable ML-KEM for Mihomo REALITY subscriptions (#6451)
This commit is contained in:
@@ -1072,8 +1072,11 @@ func (s *SubClashService) applySecurity(proxy map[string]any, security string, s
|
||||
realityOpts["short-id"] = shortID
|
||||
}
|
||||
if len(realityOpts) > 0 {
|
||||
// Xray 26.9.8+ rejects REALITY handshakes without an ML-KEM key share.
|
||||
realityOpts["support-x25519mlkem768"] = true
|
||||
proxy["reality-opts"] = realityOpts
|
||||
}
|
||||
proxy["client-fingerprint"] = "chrome"
|
||||
if fingerprint, ok := realitySettings["fingerprint"].(string); ok && fingerprint != "" {
|
||||
proxy["client-fingerprint"] = fingerprint
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user