@push.rocks/smartproxy 3.22.1 → 3.22.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 +6 -13
- package/dist_ts/classes.portproxy.js +99 -245
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.portproxy.ts +114 -281
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartproxy',
|
|
6
|
-
version: '3.22.
|
|
6
|
+
version: '3.22.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=
|
|
@@ -27,7 +27,6 @@ export interface IPortProxySettings extends plugins.tls.TlsOptions {
|
|
|
27
27
|
}>;
|
|
28
28
|
forwardAllGlobalRanges?: boolean;
|
|
29
29
|
gracefulShutdownTimeout?: number;
|
|
30
|
-
initialDataTimeout?: number;
|
|
31
30
|
}
|
|
32
31
|
export declare class PortProxy {
|
|
33
32
|
private netServers;
|
|
@@ -40,20 +39,14 @@ export declare class PortProxy {
|
|
|
40
39
|
constructor(settingsArg: IPortProxySettings);
|
|
41
40
|
private incrementTerminationStat;
|
|
42
41
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Executes the actual cleanup of a connection.
|
|
49
|
-
* Destroys sockets, clears timers, and removes the record.
|
|
50
|
-
*/
|
|
51
|
-
private executeCleanup;
|
|
52
|
-
private getTargetIP;
|
|
53
|
-
/**
|
|
54
|
-
* Updates the last activity timestamp for a connection record
|
|
42
|
+
* Cleans up a connection record.
|
|
43
|
+
* Destroys both incoming and outgoing sockets, clears timers, and removes the record.
|
|
44
|
+
* @param record - The connection record to clean up
|
|
45
|
+
* @param reason - Optional reason for cleanup (for logging)
|
|
55
46
|
*/
|
|
47
|
+
private cleanupConnection;
|
|
56
48
|
private updateActivity;
|
|
49
|
+
private getTargetIP;
|
|
57
50
|
start(): Promise<void>;
|
|
58
51
|
stop(): Promise<void>;
|
|
59
52
|
}
|