Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
4747462cff | |||
70f69ef1ea |
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-02-21 - 3.4.3 - fix(PortProxy)
|
||||||
|
Fixed indentation issue and ensured proper cleanup of sockets in PortProxy
|
||||||
|
|
||||||
|
- Fixed inconsistent indentation in IP allowance check.
|
||||||
|
- Ensured proper cleanup of sockets on connection end in PortProxy.
|
||||||
|
|
||||||
## 2025-02-21 - 3.4.2 - fix(smartproxy)
|
## 2025-02-21 - 3.4.2 - fix(smartproxy)
|
||||||
Enhance SSL/TLS handling with SNI and error logging
|
Enhance SSL/TLS handling with SNI and error logging
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartproxy",
|
"name": "@push.rocks/smartproxy",
|
||||||
"version": "3.4.2",
|
"version": "3.4.3",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a proxy for handling high workloads of proxying",
|
"description": "a proxy for handling high workloads of proxying",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartproxy',
|
name: '@push.rocks/smartproxy',
|
||||||
version: '3.4.2',
|
version: '3.4.3',
|
||||||
description: 'a proxy for handling high workloads of proxying'
|
description: 'a proxy for handling high workloads of proxying'
|
||||||
}
|
}
|
||||||
|
@ -113,10 +113,10 @@ export class PortProxy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!this.settings.defaultAllowedIPs || !isAllowed(remoteIP, this.settings.defaultAllowedIPs)) {
|
} else if (!this.settings.defaultAllowedIPs || !isAllowed(remoteIP, this.settings.defaultAllowedIPs)) {
|
||||||
console.log(`Connection rejected: IP ${remoteIP} not allowed for non-SNI connection`);
|
console.log(`Connection rejected: IP ${remoteIP} not allowed for non-SNI connection`);
|
||||||
from.end();
|
from.end();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const to = plugins.net.createConnection({
|
const to = plugins.net.createConnection({
|
||||||
host: this.settings.toHost!,
|
host: this.settings.toHost!,
|
||||||
@ -150,6 +150,8 @@ export class PortProxy {
|
|||||||
to.on('end', () => {
|
to.on('end', () => {
|
||||||
cleanUpSockets(from, to);
|
cleanUpSockets(from, to);
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
|
||||||
this.netServer = server
|
this.netServer = server
|
||||||
.on('connection', handleConnection)
|
.on('connection', handleConnection)
|
||||||
.on('secureConnection', handleConnection)
|
.on('secureConnection', handleConnection)
|
||||||
|
Reference in New Issue
Block a user