From 1b38554df0886d298fefb6c4f38b5aaec6077603 Mon Sep 17 00:00:00 2001 From: Ishan Karmakar Date: Sun, 31 May 2026 22:12:42 -0500 Subject: [PATCH] Apparently runElevated is not needed --- src/netbird.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/netbird.ts b/src/netbird.ts index 0a16005..98b0dbb 100644 --- a/src/netbird.ts +++ b/src/netbird.ts @@ -30,6 +30,7 @@ export class NetBirdClient { }); } + /// Deprecated??? runElevated(args: string[]): Promise> { const quotedExe = this.executablePath.replace(/'/g, "''"); const quotedArgs = args.map(arg => `'${String(arg).replace(/'/g, "''")}'`).join(','); @@ -67,7 +68,7 @@ export class NetBirdClient { if (status.ok) return true; - await this.runElevated([ + await this.run([ 'service', 'install', '--management-url', @@ -78,7 +79,7 @@ export class NetBirdClient { 'info' ]); - await this.runElevated(['service', 'start']); + await this.run(['service', 'start']); for (let index = 0; index < 20; index++) { const check = await this.status({ timeout: 8000 });