fix(core): update

This commit is contained in:
Philipp Kunz 2021-02-03 00:30:35 +00:00
parent 11344ac0df
commit e1d4d6cf38

View File

@ -45,6 +45,10 @@ export class SmartProxy {
console.log('successfully spawned portproxy and proxyworkers!'); console.log('successfully spawned portproxy and proxyworkers!');
} }
public async updateDefaultHeaders(defaultHeadersArg: {[key: string]: string}) {
await this.proxyWorkerFunctions.addDefaultHeaders(defaultHeadersArg);
}
public async stop() { public async stop() {
await this.proxyWorkerFunctions.stop(); await this.proxyWorkerFunctions.stop();
await plugins.smartspawn.Thread.terminate(this.proxyWorkerFunctions); await plugins.smartspawn.Thread.terminate(this.proxyWorkerFunctions);