fix(core): update
This commit is contained in:
parent
3f1f718308
commit
7fe22e962a
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartproxy',
|
name: '@pushrocks/smartproxy',
|
||||||
version: '3.0.49',
|
version: '3.0.50',
|
||||||
description: 'a proxy for handling high workloads of proxying'
|
description: 'a proxy for handling high workloads of proxying'
|
||||||
}
|
}
|
||||||
|
@ -253,9 +253,11 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
|
|||||||
ws.on('message', async (message) => {
|
ws.on('message', async (message) => {
|
||||||
if (!wscConnectedDeferred) {
|
if (!wscConnectedDeferred) {
|
||||||
wscConnectedDeferred = plugins.smartpromise.defer();
|
wscConnectedDeferred = plugins.smartpromise.defer();
|
||||||
let wsc;
|
let wsc: plugins.wsDefault;
|
||||||
try {
|
try {
|
||||||
wsc = new plugins.wsDefault(`ws://${this.router.routeReq(reqArg).destinationIp}:${this.router.routeReq(reqArg).destinationPort}${reqArg.url}`);
|
wsc = new plugins.wsDefault(`ws://${this.router.routeReq(reqArg).destinationIp}:${this.router.routeReq(reqArg).destinationPort}${reqArg.url}`, {
|
||||||
|
headers: reqArg.headers
|
||||||
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
ws.terminate();
|
ws.terminate();
|
||||||
|
Loading…
Reference in New Issue
Block a user