socksdial

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 socksdial 提供基于 SOCKS5 代理的 TCP 拨号,供 SSH 与数据库连接共用。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, proxyCfg *asset_entity.ProxyConfig, targetAddr string) (net.Conn, error)

Dial 通过 SOCKS5 代理建立到 targetAddr 的 TCP 连接。 proxyCfg.Password 必须为明文,调用方负责解密(credential_resolver.DecryptProxyPassword)。

Types

This section is empty.

Directories

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

Jump to

Keyboard shortcuts

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