fix(fptn): add fptn action to sing-box route target and outbound generation
- Add fptn to route.target() to prevent exit(2) crash on config generation - Add add_fptn_outbound() using direct outbound with routing_mark=0x00300000 (routes traffic through tun-fptn via kernel ip rule → table 4249) - Add fptn to reserve_section_outbound_tags - Add fptn to generator_routes outbound dispatch Fixes torrents and all traffic breaking when an FPTN section is configured.
This commit is contained in:
@@ -126,7 +126,7 @@ function target(section, outbound_tag_name) {
|
||||
action == "anytls" || action == "snell" || action == "mieru" || action == "sudoku" ||
|
||||
action == "masque" || action == "openvpn" ||
|
||||
action == "byedpi" || action == "zapret" || action == "zapret2" ||
|
||||
action == "wdtt" || action == "olcrtc")
|
||||
action == "wdtt" || action == "olcrtc" || action == "fptn")
|
||||
return { action: "route", outbound: outbound_tag_name };
|
||||
if (action == "bypass")
|
||||
return { action: "route", outbound: runtime_constants.BYPASS_OUTBOUND_TAG };
|
||||
|
||||
Reference in New Issue
Block a user