From df8f099d952ab996ae8fb53084768317832cae02 Mon Sep 17 00:00:00 2001 From: caorushizi <84996057@qq.com> Date: Sun, 11 Aug 2024 21:21:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20=20local=20ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/main/src/services/VideoService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/main/src/services/VideoService.ts b/packages/main/src/services/VideoService.ts index 54df37a5..232d8d50 100644 --- a/packages/main/src/services/VideoService.ts +++ b/packages/main/src/services/VideoService.ts @@ -69,7 +69,7 @@ export class VideoService { }); // 直接使用Koa的listen方法启动服务器 - app.listen(this.port, () => { + app.listen(this.port, this.localIp, () => { this.logger.info("Server is running on http://localhost:3000"); }); }