kaven-utils
Version:
Utils for Node.js.
27 lines (26 loc) • 1 kB
TypeScript
/********************************************************************
* @author: Kaven
* @email: kaven@wuwenkai.com
* @website: http://blog.kaven.xyz
* @file: [Kaven-Utils] /src/net/proxy/TlsProxyServer.ts
* @create: 2022-04-20 13:48:35.117
* @modify: 2025-10-14 22:58:04.829
* @version: 6.1.0
* @times: 40
* @lines: 122
* @copyright: Copyright © 2022-2025 Kaven. All Rights Reserved.
* @description: [description]
* @license: [license]
********************************************************************/
import { ILoggingAgent } from "kaven-basic";
import { TlsOptions, TLSSocket } from "node:tls";
export declare class TlsProxyServer {
private readonly server;
EnableKeyLog: boolean;
Authenticate?: (remoteAddress: string) => boolean;
Logger?: ILoggingAgent;
constructor(options: TlsOptions);
Start(port: number, host?: string): void;
Stop(): void;
protected onConnected(socket: TLSSocket): void;
}