From b7c72b902dc6f1dbe11e174e1ba01a7872427de4 Mon Sep 17 00:00:00 2001 From: Mizunashi Mana Date: Mon, 17 Jul 2023 09:44:48 +0900 Subject: [PATCH] fix: Branch by bind address --- packages/backend/src/server/index.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/server/index.ts b/packages/backend/src/server/index.ts index 3e2aa87b0b..6c205933d7 100644 --- a/packages/backend/src/server/index.ts +++ b/packages/backend/src/server/index.ts @@ -221,7 +221,10 @@ export const startServer = () => { initializeStreamingServer(server); - server.listen(config.port, config.bind); + server.listen({ + port: config.port, + host: config.bind + }); return server; }; @@ -257,6 +260,8 @@ export default () => } }); - // @ts-ignore - server.listen(config.port, config.bind, resolve); + server.listen({ + port: config.port, + host: config.bind + }, () => resolve(undefined)); });