diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index df85608..e06ad20 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.43', + version: '3.0.44', description: 'a proxy for handling high workloads of proxying' } diff --git a/ts/smartproxy.classes.networkproxy.ts b/ts/smartproxy.classes.networkproxy.ts index e2a10d3..46e9de8 100644 --- a/ts/smartproxy.classes.networkproxy.ts +++ b/ts/smartproxy.classes.networkproxy.ts @@ -246,8 +246,8 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= // Enable websockets const wss = new plugins.ws.WebSocketServer({ server: this.httpsServer }); - wss.on('connection', (ws: plugins.wsDefault, reqArg) => { - console.log(`got connection for wsc for https://${req.get('host')}${reqArg.url}`); + wss.on('connection', (ws: plugins.wsDefault, reqArg: plugins.http.IncomingMessage) => { + console.log(`got connection for wsc for https://${reqArg.headers.host}${reqArg.url}`); let wscConnectedDeferred: plugins.smartpromise.Deferred; ws.on('message', async (message) => {