看了看dsh用法,试试ipv6地址不支持,提示只支持expected "127.0.0.1" | "0.0.0.0",按照提示又试了试0.0.0.0,告诉我有意不支持 ^-^
root@local:/data# npx @deepseek-ai/dsh web --help
Usage: dsh --profile web [options]
Serve the DeepSeek Harness browser UI.
Options:
--host <host> bind host
--port <port> listen port; pass 0 to let the OS pick a free one
--trusted-host <authority...> extra authority the /api browser-trust fence accepts (host or host:port; repeatable)
-h, --help show this help
Examples:
dsh --profile web serve on the composed host and port
dsh --profile web --port 8080 serve on another port
root@local:/data# npx @deepseek-ai/dsh web --host '::' --port 80
file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js:1186
throw new Error(`${binName}: ${stage}: ${detail}${stack}`, { cause });
^
Error: dsh: plugin tree failed to load: failed to apply loader entry include (cordis:include): failed to apply loader entry webserver (@deepseek-ai/dsh-host-webserver): invalid config:
- $.host expected "127.0.0.1" | "0.0.0.0" but got "::" (at host)
ValidationError: invalid config:
- $.host expected "127.0.0.1" | "0.0.0.0" but got "::" (at host)
at resolveConfig (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis/lib/index.js:959:27)
at Fiber._resolveConfig (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis/lib/index.js:1346:25)
at Fiber._reload (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis/lib/index.js:1354:24)
at boot (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js:1186:9)
at async runProfile (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/dsh/lib/profile-boot-DG5t9aNs.js:247:14)
at async file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/dsh/lib/bin.js:133:3 {
[cause]: Error: failed to apply loader entry include (cordis:include): failed to apply loader entry webserver (@deepseek-ai/dsh-host-webserver): invalid config:
- $.host expected "127.0.0.1" | "0.0.0.0" but got "::" (at host)
at updateError (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:299:9)
at Entry._init (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:519:10)
at async Entry.init (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:495:4)
at async Entry.update (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:416:37)
at async EntryGroup.create (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:55:4)
at async Proxy.create (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:217:14)
at async mountRootInclude (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js:984:20)
at async boot (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js:1175:3)
at async runProfile (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/dsh/lib/profile-boot-DG5t9aNs.js:247:14)
at async file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/dsh/lib/bin.js:133:3 {
[cause]: Error: failed to apply loader entry webserver (@deepseek-ai/dsh-host-webserver): invalid config:
- $.host expected "127.0.0.1" | "0.0.0.0" but got "::" (at host)
at updateError (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:299:9)
at Entry._await (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:506:10)
at async Entry.init (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:500:3)
at async Entry.update (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:416:37)
at async EntryGroup.create (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:55:4)
at async Promise.allSettled (index 92)
at async EntryGroup.update (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js:87:21)
at async Include._apply (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js:238:3) {
[cause]: ValidationError: invalid config:
- $.host expected "127.0.0.1" | "0.0.0.0" but got "::" (at host)
at resolveConfig (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis/lib/index.js:959:27)
at Fiber._resolveConfig (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis/lib/index.js:1346:25)
at Fiber._reload (file:///root/.npm/_npx/1e7f6d9597241db0/node_modules/@deepseek-ai/cordis/lib/index.js:1354:24)
}
}
}
Node.js v24.19.0
root@local:/data# npx @deepseek-ai/dsh web --host 0.0.0.0 --port 80
error: --host 0.0.0.0 is intentionally not supported yet for safety: it would expose remote code execution to the network; use 127.0.0.1 instead