From 52d61ddc9fb7789fe3f7201f69f177502bc9b4de Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 6 Dec 2023 16:04:06 +0700 Subject: [PATCH] fix(nitro): Use nitro at 127.0.0.1 instead of 0.0.0.0 to prevent warning issue --- extensions/inference-extension/src/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/inference-extension/src/module.ts b/extensions/inference-extension/src/module.ts index b90cba740e..72e418d6c0 100644 --- a/extensions/inference-extension/src/module.ts +++ b/extensions/inference-extension/src/module.ts @@ -191,7 +191,7 @@ async function spawnNitroProcess(): Promise { const binaryPath = path.join(binaryFolder, binaryName); // Execute the binary - subprocess = spawn(binaryPath, [1, "0.0.0.0", PORT], { + subprocess = spawn(binaryPath, [1, "127.0.0.1", PORT], { cwd: binaryFolder, });