fix(core): update

This commit is contained in:
2022-08-04 14:21:05 +02:00
parent 7b0f824d29
commit 458e7d6b58
4 changed files with 509 additions and 1618 deletions

View File

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

View File

@ -186,7 +186,10 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
destinationUrl,
{
method: originRequest.method,
headers: originRequest.headers,
headers: {
...originRequest.headers,
'X-Forwarded-Proto': 'https'
},
keepAlive: true,
},
true, // lets make this streaming
@ -309,7 +312,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
this.httpsServer.listen(this.options.port);
console.log(
`ProxyWorker -> OK: now listening for new connections on port ${this.options.port}`
`NetworkProxy -> OK: now listening for new connections on port ${this.options.port}`
);
}