Skip to content

Commit 72defc8

Browse files
committed
fix(xray): avoid excluding enabled field in xray
1 parent edbef90 commit 72defc8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/subscription/xray.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,7 @@ def _build_outbound(
495495

496496
# Add mux
497497
if inbound.mux_settings and (xray_mux := inbound.mux_settings.get("xray")) and xray_mux.get("enabled"):
498-
# Filter out the enabled field as it's not part of xray mux config
499-
mux_config = {k: v for k, v in xray_mux.items() if k != "enabled"}
500-
outbound["mux"] = self._normalize_and_remove_none_values(mux_config)
498+
outbound["mux"] = self._normalize_and_remove_none_values(xray_mux)
501499

502500
return self._normalize_and_remove_none_values(outbound), extra_outbounds
503501

0 commit comments

Comments
 (0)