File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -322,6 +322,17 @@ def _build_outbound(
322322        if  inbound .mux_settings  and  (singbox_mux  :=  inbound .mux_settings .get ("sing_box" )) and  singbox_mux .get ("enable" ):
323323            # Filter out the enable field as it's not part of singbox multiplex config 
324324            multiplex_config  =  {k : v  for  k , v  in  singbox_mux .items () if  k  !=  "enable" }
325+             
326+             # Handle brutal configuration - only include if brutal.enable is True 
327+             if  "brutal"  in  multiplex_config :
328+                 brutal_config  =  multiplex_config ["brutal" ]
329+                 if  brutal_config  and  brutal_config .get ("enable" ):
330+                     # Filter out the enable field from brutal config 
331+                     multiplex_config ["brutal" ] =  {k : v  for  k , v  in  brutal_config .items () if  k  !=  "enable" }
332+                 else :
333+                     # Remove brutal config entirely if enable is False or brutal is None 
334+                     multiplex_config .pop ("brutal" , None )
335+             
325336            multiplex_config  =  self ._normalize_and_remove_none_values (multiplex_config )
326337            config ["multiplex" ] =  multiplex_config 
327338
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments