@push.rocks/smartproxy 3.30.0 → 3.30.3
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 -12
- package/dist_ts/classes.portproxy.js +101 -46
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.portproxy.ts +316 -185
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartproxy',
|
|
6
|
-
version: '3.30.
|
|
6
|
+
version: '3.30.3',
|
|
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=
|
|
@@ -14,7 +14,12 @@ export interface IDomainConfig {
|
|
|
14
14
|
useNetworkProxy?: boolean;
|
|
15
15
|
networkProxyIndex?: number;
|
|
16
16
|
}
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Port proxy settings including global allowed port ranges
|
|
19
|
+
*
|
|
20
|
+
* NOTE: In version 3.31.0+, timeout settings have been simplified and hardcoded with sensible defaults
|
|
21
|
+
* to ensure TLS certificate safety in all deployment scenarios, especially chained proxies.
|
|
22
|
+
*/
|
|
18
23
|
export interface IPortProxySettings extends plugins.tls.TlsOptions {
|
|
19
24
|
fromPort: number;
|
|
20
25
|
toPort: number;
|
|
@@ -24,11 +29,6 @@ export interface IPortProxySettings extends plugins.tls.TlsOptions {
|
|
|
24
29
|
defaultAllowedIPs?: string[];
|
|
25
30
|
defaultBlockedIPs?: string[];
|
|
26
31
|
preserveSourceIP?: boolean;
|
|
27
|
-
initialDataTimeout?: number;
|
|
28
|
-
socketTimeout?: number;
|
|
29
|
-
inactivityCheckInterval?: number;
|
|
30
|
-
maxConnectionLifetime?: number;
|
|
31
|
-
inactivityTimeout?: number;
|
|
32
32
|
gracefulShutdownTimeout?: number;
|
|
33
33
|
globalPortRanges: Array<{
|
|
34
34
|
from: number;
|
|
@@ -39,21 +39,27 @@ export interface IPortProxySettings extends plugins.tls.TlsOptions {
|
|
|
39
39
|
keepAlive?: boolean;
|
|
40
40
|
keepAliveInitialDelay?: number;
|
|
41
41
|
maxPendingDataSize?: number;
|
|
42
|
-
disableInactivityCheck?: boolean;
|
|
43
|
-
enableKeepAliveProbes?: boolean;
|
|
44
42
|
enableDetailedLogging?: boolean;
|
|
45
43
|
enableTlsDebugLogging?: boolean;
|
|
46
44
|
enableRandomizedTimeouts?: boolean;
|
|
47
45
|
maxConnectionsPerIP?: number;
|
|
48
46
|
connectionRateLimitPerMinute?: number;
|
|
49
|
-
keepAliveTreatment?: 'standard' | 'extended' | 'immortal';
|
|
50
|
-
keepAliveInactivityMultiplier?: number;
|
|
51
|
-
extendedKeepAliveLifetime?: number;
|
|
52
47
|
networkProxies?: NetworkProxy[];
|
|
53
48
|
}
|
|
54
49
|
export declare class PortProxy {
|
|
55
50
|
private netServers;
|
|
56
|
-
settings: IPortProxySettings
|
|
51
|
+
settings: IPortProxySettings & {
|
|
52
|
+
initialDataTimeout: number;
|
|
53
|
+
socketTimeout: number;
|
|
54
|
+
inactivityCheckInterval: number;
|
|
55
|
+
maxConnectionLifetime: number;
|
|
56
|
+
inactivityTimeout: number;
|
|
57
|
+
disableInactivityCheck: boolean;
|
|
58
|
+
enableKeepAliveProbes: boolean;
|
|
59
|
+
keepAliveTreatment: 'standard' | 'extended' | 'immortal';
|
|
60
|
+
keepAliveInactivityMultiplier: number;
|
|
61
|
+
extendedKeepAliveLifetime: number;
|
|
62
|
+
};
|
|
57
63
|
private connectionRecords;
|
|
58
64
|
private connectionLogger;
|
|
59
65
|
private isShuttingDown;
|