Skip to content

Commit d4c41a7

Browse files
committed
fix(clash): vless encryption
1 parent 0523107 commit d4c41a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/subscription/clash.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,9 @@ def _build_vless(self, remark: str, address: str, inbound: SubscriptionInboundDa
326326
"port": inbound.port,
327327
"udp": True,
328328
"uuid": settings["id"],
329-
"encryption": "" if inbound.encryption == "none" else inbound.encryption,
330329
}
330+
if inbound.encryption != "none":
331+
node["encryption"] = inbound.encryption
331332

332333
# Only add flow if inbound supports it
333334
if inbound.flow_enabled and (flow := settings.get("flow", "")):

0 commit comments

Comments
 (0)