Skip to content

Commit

Permalink
Merge pull request #1071 from M03ED/1.8.11
Browse files Browse the repository at this point in the history
fix: sing-box mux config
  • Loading branch information
SaintShit authored Jul 2, 2024
2 parents 0f52452 + 4609962 commit 28704ee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/subscription/singbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,12 @@ def make_outbound(self,
config['tls'] = self.tls_config(sni=sni, fp=fp, tls=tls,
pbk=pbk, sid=sid, alpn=alpn,
ais=ais)
if mux_enable:
mux_json = json.loads(self.mux_template)
mux_config = mux_json["sing-box"]
config['multiplex'] = mux_config

mux_json = json.loads(self.mux_template)
mux_config = mux_json["sing-box"]

config['multiplex'] = mux_config
if config['multiplex']["enabled"]:
config['multiplex']["enabled"] = mux_enable

return config
Expand Down

0 comments on commit 28704ee

Please sign in to comment.