socksdialtest

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package socksdialtest 提供测试用的极简 SOCKS5 服务器与 echo 服务,供 socksdial 与 connpool 测试共用。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(t testing.TB, user, pass string) string

Start 启动一个极简 SOCKS5 服务(仅 CONNECT),返回监听地址。 user 为空表示 no-auth,否则要求 RFC 1929 用户名/密码认证。

func StartEcho

func StartEcho(t testing.TB) string

StartEcho 启动一个回显 TCP 服务,返回监听地址。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL