fix: host addr

This commit is contained in:
2026-03-21 00:29:36 +08:00
parent 7a490b82df
commit 3d9617f06c
3 changed files with 9 additions and 4 deletions
+1
View File
@@ -17,6 +17,7 @@ program
.description('运行一个 web 服务器预览目录中的内容,并实时监听更新')
.argument('[dir]', '要预览的目录', '.')
.option('-p, --port <port>', '端口号', '3000')
.option('-h, --host <host>', '主机地址', '0.0.0.0')
.action(serveCommand);
program