@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.
- package/bin/tun-helper-darwin-amd64 +0 -0
- package/bin/tun-helper-darwin-arm64 +0 -0
- package/bin/tun-helper-linux-amd64 +0 -0
- package/bin/tun-helper-linux-arm64 +0 -0
- package/dist/carrier/peer-manager.d.ts +10 -0
- package/dist/carrier/peer-manager.js +25 -1
- package/dist/carrier/types.d.ts +1 -0
- package/dist/carrier/types.js +6 -0
- package/dist/cli/commands.d.ts +22 -0
- package/dist/cli/commands.js +99 -0
- package/dist/cli/index.js +16 -1
- package/dist/daemon/ipc.d.ts +7 -1
- package/dist/daemon/ipc.js +4 -0
- package/dist/daemon/server.js +38 -0
- package/dist/proxy/connect-proxy.d.ts +17 -0
- package/dist/proxy/connect-proxy.js +29 -1
- package/dist/proxy/data/chnroutes-cn.d.ts +1 -0
- package/dist/proxy/data/chnroutes-cn.js +691 -0
- package/dist/proxy/geo-cn.d.ts +25 -0
- package/dist/proxy/geo-cn.js +144 -0
- package/dist/proxy/hls-prefetch.d.ts +67 -0
- package/dist/proxy/hls-prefetch.js +195 -0
- package/dist/proxy/mitm-ca.d.ts +27 -0
- package/dist/proxy/mitm-ca.js +120 -0
- package/dist/proxy/mitm-gateway.d.ts +22 -0
- package/dist/proxy/mitm-gateway.js +76 -0
- package/dist/proxy/multi-exit-router.d.ts +13 -0
- package/dist/proxy/multi-exit-router.js +693 -78
- package/dist/proxy/route-learner.d.ts +33 -0
- package/dist/proxy/route-learner.js +129 -0
- package/dist/router/paced-forwarder.d.ts +45 -0
- package/dist/router/paced-forwarder.js +188 -0
- package/dist/router/packet-router.d.ts +10 -0
- package/dist/router/packet-router.js +74 -1
- package/dist/types.d.ts +7 -0
- package/dist/ui/desktop/app.js +1 -1
- package/dist/ui/desktop/index.html +1 -1
- package/dist/ui/server.js +1 -1
- 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[]>;
|