@push.rocks/smartproxy 3.32.2 → 3.34.0

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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartproxy',
6
- version: '3.32.2',
6
+ version: '3.34.0',
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=
@@ -1,5 +1,4 @@
1
1
  import * as plugins from './plugins.js';
2
- import { NetworkProxy } from './classes.networkproxy.js';
3
2
  /** Domain configuration with per-domain allowed port ranges */
4
3
  export interface IDomainConfig {
5
4
  domains: string[];
@@ -11,8 +10,6 @@ export interface IDomainConfig {
11
10
  to: number;
12
11
  }>;
13
12
  connectionTimeout?: number;
14
- useNetworkProxy?: boolean;
15
- networkProxyIndex?: number;
16
13
  }
17
14
  /** Port proxy settings including global allowed port ranges */
18
15
  export interface IPortProxySettings extends plugins.tls.TlsOptions {
@@ -49,7 +46,8 @@ export interface IPortProxySettings extends plugins.tls.TlsOptions {
49
46
  keepAliveTreatment?: 'standard' | 'extended' | 'immortal';
50
47
  keepAliveInactivityMultiplier?: number;
51
48
  extendedKeepAliveLifetime?: number;
52
- networkProxies?: NetworkProxy[];
49
+ useNetworkProxy?: number[];
50
+ networkProxyPort?: number;
53
51
  }
54
52
  export declare class PortProxy {
55
53
  private netServers;
@@ -61,16 +59,18 @@ export declare class PortProxy {
61
59
  private terminationStats;
62
60
  private connectionsByIP;
63
61
  private connectionRateByIP;
64
- private networkProxies;
62
+ private networkProxy;
65
63
  constructor(settingsArg: IPortProxySettings);
64
+ /**
65
+ * Initialize NetworkProxy instance
66
+ */
67
+ private initializeNetworkProxy;
66
68
  /**
67
69
  * Forwards a TLS connection to a NetworkProxy for handling
68
70
  * @param connectionId - Unique connection identifier
69
71
  * @param socket - The incoming client socket
70
72
  * @param record - The connection record
71
- * @param domainConfig - The domain configuration
72
73
  * @param initialData - Initial data chunk (TLS ClientHello)
73
- * @param serverName - SNI hostname (if available)
74
74
  */
75
75
  private forwardToNetworkProxy;
76
76
  /**
@@ -129,14 +129,6 @@ export declare class PortProxy {
129
129
  * Main method to start the proxy
130
130
  */
131
131
  start(): Promise<void>;
132
- /**
133
- * Add or replace NetworkProxy instances
134
- */
135
- setNetworkProxies(networkProxies: NetworkProxy[]): void;
136
- /**
137
- * Get a list of configured NetworkProxy instances
138
- */
139
- getNetworkProxies(): NetworkProxy[];
140
132
  /**
141
133
  * Gracefully shut down the proxy
142
134
  */