proxydial

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address added in v0.2.13

func Address(proxyURL *url.URL) string

Address 返回代理的拨号地址,HTTP 与 HTTPS 代理省略端口时补齐默认端口

func Dialer

func Dialer(proxyURL *url.URL) (proxy.ContextDialer, error)

Dialer 返回经代理建立 TCP 连接的拨号器,支持 HTTP、HTTPS CONNECT 与 SOCKS5 及其账号密码

Types

type Relay

type Relay struct {
	// contains filtered or unexported fields
}

Relay 在本机回环地址提供无认证 SOCKS5 入口,并经上游代理转发连接

func StartRelay

func StartRelay(proxyURL *url.URL) (*Relay, error)

StartRelay 为上游代理启动本机 SOCKS5 中转

func (*Relay) Addr

func (relay *Relay) Addr() *net.TCPAddr

Addr 返回中转监听的本机地址

func (*Relay) Close

func (relay *Relay) Close() error

Close 停止监听并断开全部转发连接

Jump to

Keyboard shortcuts

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