@push.rocks/smartproxy
Version:
A powerful proxy package with unified route-based configuration for high traffic management. Features include SSL/TLS support, flexible routing patterns, WebSocket handling, advanced security options, and automatic ACME certificate management.
16 lines (15 loc) • 531 B
TypeScript
import * as plugins from '../../plugins.js';
declare module 'net' {
interface Socket {
encrypted?: boolean;
authorizationError?: Error;
getTLSVersion?(): string;
getPeerCertificate?(detailed?: boolean): any;
getSession?(): Buffer;
_connectionId?: string;
_remoteIP?: string;
_realRemoteIP?: string;
}
}
export declare function isTLSSocket(socket: plugins.net.Socket): boolean;
export declare function getTLSVersion(socket: plugins.net.Socket): string | null;