Skip to content

Commit fd7ae7b

Browse files
feat(clash-meta): Add mlkem768 support
1 parent b9c23c5 commit fd7ae7b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/subscription/clash.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
import yaml
55

66
from app.models.subscription import (
7+
GRPCTransportConfig,
78
SubscriptionInboundData,
9+
TCPTransportConfig,
810
TLSConfig,
9-
GRPCTransportConfig,
1011
WebSocketTransportConfig,
11-
TCPTransportConfig,
1212
)
1313
from app.templates import render_template
1414
from app.utils.helpers import yml_uuid_representer
@@ -315,6 +315,7 @@ def _apply_tls_meta(self, node: dict, tls_config: TLSConfig, protocol: str):
315315
node["reality-opts"] = {
316316
"public-key": tls_config.reality_public_key,
317317
"short-id": tls_config.reality_short_id or "",
318+
"support-x25519mlkem768": bool(tls_config.mldsa65_verify),
318319
}
319320

320321
def _build_vless(self, remark: str, address: str, inbound: SubscriptionInboundData, settings: dict) -> dict:

0 commit comments

Comments
 (0)