Skip to content

Commit 01dd91a

Browse files
committed
fix(singbox): filter out enable field from multiplex config
1 parent 0e1eb25 commit 01dd91a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/subscription/singbox.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,10 @@ def _build_outbound(
320320

321321
# Add mux
322322
if inbound.mux_settings and (singbox_mux := inbound.mux_settings.get("sing_box")) and singbox_mux.get("enable"):
323-
singbox_mux = self._normalize_and_remove_none_values(singbox_mux)
324-
config["multiplex"] = singbox_mux
323+
# Filter out the enable field as it's not part of singbox multiplex config
324+
multiplex_config = {k: v for k, v in singbox_mux.items() if k != "enable"}
325+
multiplex_config = self._normalize_and_remove_none_values(multiplex_config)
326+
config["multiplex"] = multiplex_config
325327

326328
return self._normalize_and_remove_none_values(config)
327329

0 commit comments

Comments
 (0)