diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index a50d3dd..1681d71 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.46', + version: '3.0.47', description: 'a proxy for handling high workloads of proxying' } diff --git a/ts/smartproxy.classes.networkproxy.ts b/ts/smartproxy.classes.networkproxy.ts index 0c1977c..b6fa64b 100644 --- a/ts/smartproxy.classes.networkproxy.ts +++ b/ts/smartproxy.classes.networkproxy.ts @@ -253,7 +253,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= ws.on('message', async (message) => { if (!wscConnectedDeferred) { wscConnectedDeferred = plugins.smartpromise.defer(); - const wsc = new plugins.wsDefault(`wss://${this.router.routeReq(reqArg).destinationIp}${reqArg.url}`); + const wsc = new plugins.wsDefault(`wss://${this.router.routeReq(reqArg).destinationIp}:${this.router.routeReq(reqArg).destinationPort}${reqArg.url}`); wsc.on('open', () => { wscConnectedDeferred.resolve(wsc);