proxychain

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: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LayerSSH        = "ssh"
	LayerSOCKS5     = "socks5"
	LayerHTTPTunnel = "http_tunnel"
)

Variables

This section is empty.

Functions

func DialTLS

func DialTLS(ctx context.Context, dial DialFunc, addr string, tlsConfig *tls.Config) (net.Conn, error)

func ReadHTTPResponse

func ReadHTTPResponse(conn net.Conn) (*http.Response, error)

Types

type Chain

type Chain struct {
	Layers []Layer
	Direct DialFunc
}

func (Chain) Dial

func (c Chain) Dial(ctx context.Context, targetAddr string) (net.Conn, error)

type DialFunc

type DialFunc func(ctx context.Context, addr string) (net.Conn, error)

type Layer

type Layer struct {
	Type           string
	Name           string
	Host           string
	Port           int
	Username       string
	Password       string
	SSHConfig      *ssh.ClientConfig
	URL            string
	Token          string
	TimeoutSeconds int
}

Jump to

Keyboard shortcuts

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