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 });