From e1d4d6cf3848fbdadef9975018ccaf205d04e162 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 3 Feb 2021 00:30:35 +0000 Subject: [PATCH] fix(core): update --- ts/smartproxy.classes.smartproxy.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/smartproxy.classes.smartproxy.ts b/ts/smartproxy.classes.smartproxy.ts index b3c2589..02105c9 100644 --- a/ts/smartproxy.classes.smartproxy.ts +++ b/ts/smartproxy.classes.smartproxy.ts @@ -45,6 +45,10 @@ export class SmartProxy { console.log('successfully spawned portproxy and proxyworkers!'); } + public async updateDefaultHeaders(defaultHeadersArg: {[key: string]: string}) { + await this.proxyWorkerFunctions.addDefaultHeaders(defaultHeadersArg); + } + public async stop() { await this.proxyWorkerFunctions.stop(); await plugins.smartspawn.Thread.terminate(this.proxyWorkerFunctions);