New:Socket for Asana Is Now Available.Learn more
Get Started

dsh-remote-access

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsh-remote-access

dsh Web GUI remote access: bind the webserver to 0.0.0.0 for LAN/remote access and inject the crypto.randomUUID polyfill for non-secure HTTP origins.

latest
Source
npmnpm
Version
0.4.11
Version published
Maintainers
1
Created
Source

dsh-remote-access

让 dsh Web GUI 支持远程访问:将 webserver 绑定到 0.0.0.0,让同一网络内(或 VPN 内)的其他设备也能通过浏览器访问;同时注入 crypto.randomUUID polyfill,修复浏览器在非安全上下文(普通 HTTP 的局域网/IP 来源)下无法运行客户端 bundle 的问题。

安全性说明:本插件面向可信网络(局域网 / 私有 VPN)。开启后 Web GUI 不再只绑定 loopback,切勿直接暴露到公网。公网安全访问请配合 Tailscale / Cloudflare Tunnel / WireGuard 等网络层隔离方案。

安装

两种方式任选其一:

# 从 GitHub
dsh plugin --profile web add github:KongXiangning/dsh-remote-access

# 从 npm
dsh plugin --profile web add dsh-remote-access

用法

  • 打开 Web GUI → 设置 → 插件 → 插件配置 → 「远程访问」卡片
  • 打开「允许远程访问」开关
  • 重启 dsh web 后生效(web profile 未启用 HMR,patch 变更需重启应用)

重启后,其他设备通过 http://<本机局域网IP>:<端口> 访问;关闭开关并重启后恢复仅本机可访问。

原理

  • 开关开启时,插件把 profile 的 cordis.patch.yml 改写为:webserver 行绑定 0.0.0.0connection 行把 /api 浏览器信任围栏指向本机局域网 IPv4 地址
  • crypto.randomUUID polyfill 始终注入(安全来源下无副作用,LAN HTTP 下必需),无需单独配置
  • 端口跟随启动参数 dsh web --port <N>,插件不改变端口

开发

dsh-remote-access/
├── package.json       # dsh.bundle + dsh.client 声明
├── cordis.patch.yml   # 插入 remote-access 插件行
├── index.js           # host 半:settings 命名空间 + patch 改写 + polyfill
└── lib/client.js      # browser 半:设置卡片(手写 bundle,无构建步骤)

License

MIT

Keywords

dsh

FAQs

Package last updated on 14 Aug 2026

Related posts