@push.rocks/smartproxy 3.31.2 → 3.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.portproxy.d.ts +18 -2
- package/dist_ts/classes.portproxy.js +853 -163
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.portproxy.ts +1025 -202
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartproxy',
|
|
6
|
-
version: '3.
|
|
6
|
+
version: '3.32.1',
|
|
7
7
|
description: 'A powerful proxy package that effectively handles high traffic, with features such as SSL/TLS support, port proxying, WebSocket handling, and dynamic routing with authentication options.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLDRMQUE0TDtDQUMxTSxDQUFBIn0=
|
|
@@ -45,6 +45,15 @@ export interface IPortProxySettings extends plugins.tls.TlsOptions {
|
|
|
45
45
|
maxConnectionsPerIP?: number;
|
|
46
46
|
connectionRateLimitPerMinute?: number;
|
|
47
47
|
networkProxies?: NetworkProxy[];
|
|
48
|
+
isChainedProxy?: boolean;
|
|
49
|
+
chainPosition?: 'first' | 'middle' | 'last';
|
|
50
|
+
aggressiveTlsRefresh?: boolean;
|
|
51
|
+
tlsSessionCache?: {
|
|
52
|
+
enabled?: boolean;
|
|
53
|
+
maxEntries?: number;
|
|
54
|
+
expiryTime?: number;
|
|
55
|
+
cleanupInterval?: number;
|
|
56
|
+
};
|
|
48
57
|
}
|
|
49
58
|
export declare class PortProxy {
|
|
50
59
|
private netServers;
|
|
@@ -105,11 +114,18 @@ export declare class PortProxy {
|
|
|
105
114
|
*/
|
|
106
115
|
private incrementTerminationStat;
|
|
107
116
|
/**
|
|
108
|
-
* Update connection activity timestamp with sleep detection
|
|
117
|
+
* Update connection activity timestamp with enhanced sleep detection
|
|
118
|
+
* Improved for chained proxy scenarios and more aggressive handling of stale connections
|
|
109
119
|
*/
|
|
110
120
|
private updateActivity;
|
|
111
121
|
/**
|
|
112
|
-
*
|
|
122
|
+
* Perform deep TLS state refresh after sleep detection
|
|
123
|
+
* More aggressive than the standard refresh, specifically designed for
|
|
124
|
+
* recovering connections after system sleep in chained proxy setups
|
|
125
|
+
*/
|
|
126
|
+
private performDeepTlsRefresh;
|
|
127
|
+
/**
|
|
128
|
+
* Legacy refresh method for backward compatibility
|
|
113
129
|
*/
|
|
114
130
|
private refreshTlsStateAfterSleep;
|
|
115
131
|
/**
|