From 7f8112930d56ad4274f1f5729ea373f6df50aca7 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 6 Jan 2023 12:56:51 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/smartproxy.classes.networkproxy.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 913d70f..c8bf47c 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartproxy', - version: '3.0.54', + version: '3.0.55', description: 'a proxy for handling high workloads of proxying' } diff --git a/ts/smartproxy.classes.networkproxy.ts b/ts/smartproxy.classes.networkproxy.ts index 692a4f0..2d0632f 100644 --- a/ts/smartproxy.classes.networkproxy.ts +++ b/ts/smartproxy.classes.networkproxy.ts @@ -247,11 +247,12 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= // Enable websockets const wsServer = new plugins.ws.WebSocketServer({ server: this.httpsServer }); wsServer.on('connection', async (wsIncoming: plugins.wsDefault, reqArg: plugins.http.IncomingMessage) => { - console.log(`wss: got connection for wsc for https://${reqArg.headers.host}${reqArg.url}`); + console.log(`wss proxy: got connection for wsc for https://${reqArg.headers.host}${reqArg.url}`); let wsOutgoing: plugins.wsDefault; try { wsOutgoing = new plugins.wsDefault(`ws://${this.router.routeReq(reqArg).destinationIp}:${this.router.routeReq(reqArg).destinationPort}${reqArg.url}`); + console.log('wss proxy: initiated outgoing proxy') } catch (err) { console.log(err); wsIncoming.terminate();