dsh-plugin-mesh 0.3.32 → 0.3.33
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/lib/index.js +5 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -45,7 +45,7 @@ import { tailnetFetch, tailnetOrigin } from "./tsnet/bridge.js";
|
|
|
45
45
|
export const name = "dsh-plugin-mesh";
|
|
46
46
|
export const inject = ["tools", "webServer"];
|
|
47
47
|
|
|
48
|
-
const VERSION = "0.3.
|
|
48
|
+
const VERSION = "0.3.33";
|
|
49
49
|
const RULE_ID = "mesh-inbound";
|
|
50
50
|
const RULE_KIND = "mesh";
|
|
51
51
|
const MAX_BODY = 256 * 1024;
|
|
@@ -1796,7 +1796,10 @@ function registerUiRoutes(ctx, { discovery, config, identity, inbound, outbound,
|
|
|
1796
1796
|
workspaceRoot: config.workspaceRoot,
|
|
1797
1797
|
peerTtlMs: config.peerTtlMs,
|
|
1798
1798
|
announceIntervalMs: config.announceIntervalMs,
|
|
1799
|
-
|
|
1799
|
+
// 必须用生效值,不能用 config —— 这个接口是 UI 读的,
|
|
1800
|
+
// 界面开关一改就得立刻反映出来(端到端测试就是在这抓到过一次 stale)。
|
|
1801
|
+
requirePairing: pairingRequired(config),
|
|
1802
|
+
requirePairingPinned: pairingPinned(config),
|
|
1800
1803
|
useMulticast: config.useMulticast !== false,
|
|
1801
1804
|
scanOnStart: config.scanOnStart !== false,
|
|
1802
1805
|
scanIntervalMs: config.scanIntervalMs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-mesh",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "DSH Mesh:局域网自动发现同网段的 DSH 实例、显示每台机器上报的能力,并双向派发任务;可用内置的用户态 Tailscale 节点跨互联网组网。Discovers other DSH instances on the LAN, shows the capabilities each one reports, and dispatches tasks between machines in both directions, with an optional userspace Tailscale node for links across networks.",
|
|
6
6
|
"license": "MIT",
|