fix(core): update

This commit is contained in:
Philipp Kunz 2022-07-30 08:20:20 +02:00
parent 42cbc51d22
commit 1136841b3d
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/smartproxy', name: '@pushrocks/smartproxy',
version: '3.0.13', version: '3.0.14',
description: 'a proxy for handling high workloads of proxying' description: 'a proxy for handling high workloads of proxying'
} }

View File

@ -130,7 +130,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
res.end(messageArg); res.end(messageArg);
}; };
console.log('got request'); console.log(`got request: ${req.headers.host}${plugins.url.parse(req.url).path}`);
const destinationConfig = this.router.routeReq(req); const destinationConfig = this.router.routeReq(req);
if (!destinationConfig) { if (!destinationConfig) {
@ -290,6 +290,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
} }
public async updateProxyConfigs(proxyConfigsArg: plugins.tsclass.network.IReverseProxyConfig[]) { public async updateProxyConfigs(proxyConfigsArg: plugins.tsclass.network.IReverseProxyConfig[]) {
console.log(`got new proxy configs`);
this.proxyConfigs = proxyConfigsArg; this.proxyConfigs = proxyConfigsArg;
this.router.setNewProxyConfigs(proxyConfigsArg); this.router.setNewProxyConfigs(proxyConfigsArg);
for (const hostCandidate of this.proxyConfigs) { for (const hostCandidate of this.proxyConfigs) {