@decentnetwork/lan 0.1.137 → 0.1.139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/bin/tun-helper-darwin-amd64 +0 -0
  2. package/bin/tun-helper-darwin-arm64 +0 -0
  3. package/bin/tun-helper-linux-amd64 +0 -0
  4. package/bin/tun-helper-linux-arm64 +0 -0
  5. package/dist/carrier/peer-manager.d.ts +10 -0
  6. package/dist/carrier/peer-manager.js +25 -1
  7. package/dist/carrier/types.d.ts +1 -0
  8. package/dist/carrier/types.js +6 -0
  9. package/dist/cli/commands.d.ts +22 -0
  10. package/dist/cli/commands.js +99 -0
  11. package/dist/cli/index.js +16 -1
  12. package/dist/daemon/ipc.d.ts +7 -1
  13. package/dist/daemon/ipc.js +4 -0
  14. package/dist/daemon/server.js +38 -0
  15. package/dist/proxy/connect-proxy.d.ts +17 -0
  16. package/dist/proxy/connect-proxy.js +29 -1
  17. package/dist/proxy/data/chnroutes-cn.d.ts +1 -0
  18. package/dist/proxy/data/chnroutes-cn.js +691 -0
  19. package/dist/proxy/geo-cn.d.ts +25 -0
  20. package/dist/proxy/geo-cn.js +144 -0
  21. package/dist/proxy/hls-prefetch.d.ts +67 -0
  22. package/dist/proxy/hls-prefetch.js +195 -0
  23. package/dist/proxy/mitm-ca.d.ts +27 -0
  24. package/dist/proxy/mitm-ca.js +120 -0
  25. package/dist/proxy/mitm-gateway.d.ts +22 -0
  26. package/dist/proxy/mitm-gateway.js +76 -0
  27. package/dist/proxy/multi-exit-router.d.ts +13 -0
  28. package/dist/proxy/multi-exit-router.js +693 -78
  29. package/dist/proxy/route-learner.d.ts +33 -0
  30. package/dist/proxy/route-learner.js +129 -0
  31. package/dist/router/paced-forwarder.d.ts +45 -0
  32. package/dist/router/paced-forwarder.js +188 -0
  33. package/dist/router/packet-router.d.ts +10 -0
  34. package/dist/router/packet-router.js +74 -1
  35. package/dist/types.d.ts +7 -0
  36. package/dist/ui/desktop/app.js +1 -1
  37. package/dist/ui/desktop/index.html +1 -1
  38. package/dist/ui/server.js +1 -1
  39. package/package.json +4 -2
@@ -33,6 +33,19 @@ export interface MultiExitRouterOptions {
33
33
  * to direct dials — exit dials must keep the OS source so they reach the
34
34
  * exit's agentnet vIP over the TUN. Resolve via resolveEgressBindIp(). */
35
35
  egressBindIp?: string;
36
+ /** Region unmatched hosts fall back to when their DIRECT route keeps
37
+ * failing (hard failure or GFW-style instant close). The router retries the
38
+ * request through this region's exits and LEARNS the host once it proves
39
+ * misclassified. Default: the first configured region that has exits. */
40
+ fallbackRegion?: string;
41
+ /** Persist learned host→region routes here (JSON). Unset = memory-only. */
42
+ learnedRoutesPath?: string;
43
+ /** Enable the HLS aggregation gateway: selectively MITM China video-CDN
44
+ * hosts so their segments can be prefetched in parallel across the exit
45
+ * pool. Requires configDir (for the CA) and trusting the printed CA cert. */
46
+ hlsAccel?: boolean;
47
+ /** Config dir for the MITM CA (mitm-ca-cert.pem / -key.pem). */
48
+ configDir?: string;
36
49
  log?: (msg: string) => void;
37
50
  }
38
51
  export declare const BUILTIN_REGION_DOMAINS: Record<string, string[]>;