From 388442e9ce40a7db9109350504394659e515f6a0 Mon Sep 17 00:00:00 2001 From: Jeffrey <572199+darkthread@users.noreply.github.com> Date: Sat, 3 Jun 2023 22:56:55 +0800 Subject: [PATCH] fix: server binding 0.0.0.0 for useLocalIp only --- src/Helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helper.ts b/src/Helper.ts index 24bdebcf..3123d13d 100644 --- a/src/Helper.ts +++ b/src/Helper.ts @@ -108,7 +108,7 @@ export class Helper { const file = Config.getFile; return { port: port, - host: '0.0.0.0', + host: Config.getLocalIp ? '0.0.0.0' : Config.getHost, root: rootPath, file: file, open: false,