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