From dfc8332719448e355feefa9fcaa864833910583b Mon Sep 17 00:00:00 2001 From: Ritwick Dey Date: Tue, 30 Aug 2022 12:12:01 +0530 Subject: [PATCH] fix: require ip get call --- src/appModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/appModel.ts b/src/appModel.ts index aa2d3f47..295ae8e9 100644 --- a/src/appModel.ts +++ b/src/appModel.ts @@ -206,7 +206,7 @@ export class AppModel implements IAppModel { } private openBrowser(port: number, path: string) { - const host = (Config.getLocalIp ? require('ips').local : Config.getHost) || '127.0.0.1'; + const host = (Config.getLocalIp ? require('ips')().local : Config.getHost) || '127.0.0.1'; const protocol = Config.getHttps.enable ? 'https' : 'http'; let params: string[] = [];