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:
Dushnilin
2026-09-16 06:33:23 +03:00
parent c59e90f4e1
commit 971d958331
3 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -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 };