socks5

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSocks5Config

func GetSocks5Config(key string) *socks5.Config

func ListenForClients

func ListenForClients(address string) error

Catches clients and connects to yamux

func ListenForSocks

func ListenForSocks(address string)

Catches yamux connecting to us

func RSocks5

func RSocks5(key, address string, nP int) error

反向代理: 1、A 可以连接 B,B无法连接A 2、A建立 socks5 server,并与A见你 返回本机所有绑定的ip和端口信息给回调

func Socks5Server

func Socks5Server(key string, fnCbk func(Socks5ServerInfo, interface{}), wg interface{}) error

传入key 返回本机所有绑定的ip和端口信息给回调

Types

type Socks5ServerInfo

type Socks5ServerInfo struct {
	Port int
	Ips  []string
}

Jump to

Keyboard shortcuts

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