Files
SnowLuma/.pnpm-store/v11/files/7b/3fc2ee827ea937293c3eb695d49c707f360f3b07c5da6cab7824ac6f2c3d0a515af2498f862fb8c575fa2a3315d4616b82746b3ee494b6b9ce917f4f5e7ea1
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

28 lines
983 B
Plaintext

import Dispatcher from './dispatcher'
import buildConnector from './connector'
import { OutgoingHttpHeaders } from './header'
import Pool from './pool'
export default Socks5ProxyAgent
declare class Socks5ProxyAgent extends Dispatcher {
constructor (proxyUrl: string | URL, options?: Socks5ProxyAgent.Options)
}
declare namespace Socks5ProxyAgent {
export interface Options extends Pool.Options {
/** Additional headers to send with the proxy connection */
headers?: OutgoingHttpHeaders;
/** SOCKS5 proxy username for authentication */
username?: string;
/** SOCKS5 proxy password for authentication */
password?: string;
/** Custom connector function for proxy connection */
connect?: buildConnector.connector;
/** TLS options for the proxy connection (for SOCKS5 over TLS) */
proxyTls?: buildConnector.BuildOptions;
/** TLS options for the end-to-end connection to the target */
requestTls?: buildConnector.BuildOptions;
}
}