dsh-mesh-access 1.5.0 → 1.5.1
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/CHANGELOG.md +4 -0
- package/lib/client.js +5 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/client.js
CHANGED
|
@@ -252,14 +252,13 @@ window.__ModuleLoader__.load({
|
|
|
252
252
|
- 域名(可选):<MY_DOMAIN>,DNS A 记录我已指到服务器
|
|
253
253
|
|
|
254
254
|
【你要做的事】
|
|
255
|
-
1.
|
|
256
|
-
2.
|
|
257
|
-
3. 公网入口(我填了服务器才做):
|
|
255
|
+
1. 组网直连:如果我有星空组网/同一局域网,通过插件面板(左侧「组网访问」)在组网地址上开端口,给我带 token 的手机访问地址
|
|
256
|
+
2. 公网入口(我填了服务器才做):
|
|
258
257
|
- 在服务器上运行 dsh-mesh-access 项目的 tools/frps-setup.sh(GitHub Release 下载 tgz 解包)
|
|
259
258
|
- 云安全组放行 7000 和 21081 两个端口——这一步做不了,提醒我去控制台点
|
|
260
259
|
- 在电脑插件面板「公网隧道」卡片填服务器信息并启动,验证公网地址可达(401/弹窗=正常)
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
3. 门锁:在面板「入口登录」切到密钥模式,把「手机首次打开」链接给我
|
|
261
|
+
4. 全部完成后按 docs/AI-SETUP.md 第 6 节模板回报结果;任何一步验证不过不许说成功
|
|
263
262
|
|
|
264
263
|
参考文档(插件的 docs/ 目录里有):VPS.md(服务器步骤)、AI-SETUP.md(你的操作手册)。`
|
|
265
264
|
|
|
@@ -275,11 +274,7 @@ window.__ModuleLoader__.load({
|
|
|
275
274
|
}, label)
|
|
276
275
|
|
|
277
276
|
const guidePage = h('div', null,
|
|
278
|
-
h(Card, { title: '第
|
|
279
|
-
h('div', { style: S.row }, h(K, null, 'dsh plugin --profile web add dsh-mesh-access')),
|
|
280
|
-
h('div', { style: { ...S.hint, marginTop: 6 } }, '装完 ', h(Mark, {color:warn}, '必须重启'), ' dsh web(Ctrl+C 再 dsh web),左侧才会出现「组网访问」。npm 不通用 Release 的 ', h(K,null,'dsh-mesh-access.tgz'), '。'),
|
|
281
|
-
),
|
|
282
|
-
h(Card, { title: '第 1 步 · 组网内直连(最短路径:1 条命令 + 2 次点击)' },
|
|
277
|
+
h(Card, { title: '第 1 步 · 组网内直连(最短路径:2 次点击)' },
|
|
283
278
|
h(Step, { n: 1, title: '开端口' }, h('div', { style: S.hint }, '切到「控制台」页 → 「动作」卡 → ', h(Mark, {color:accent}, '在组网地址上开端口'), '。前提:手机和电脑在同一个组网(星空/局域网)。')),
|
|
284
279
|
h(Step, { n: 2, title: '复制地址' }, h('div', { style: S.hint }, '「访问地址」卡里点复制——那串 ', h(K, null, 'token'), ' 本身就是一层凭证。')),
|
|
285
280
|
h(Step, { n: 3, title: '手机打开' }, h('div', { style: S.hint }, '就是电脑上这个 DSH:', h(Mark, {color:good}, '同实例、同会话'), ',不用 SSH、不用第二个 dsh。')),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mesh-access",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Control your DSH from your phone: opens a port on the mesh/VPN interface from inside the running server process, so a phone browser gets the same instance and the same session list — no SSH, no second dsh. Also reachable from another PC, a GUI NAS, or a TV box.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|