server

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNS

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

DNS .

func NewDNS

func NewDNS(laddr, server string, timeout time.Duration, tcp, udp *int32) (d *DNS, e error)

NewDNS 創建 dns 服務器

func (*DNS) Run

func (d *DNS) Run()

Run 運行 dns 服務

type Redir

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

Redir 透明代理 實現

func NewRedir

func NewRedir(laddr string,
	requestTimeout, bridgeTimeout time.Duration,
	bufferSize int,
	proxy, request *int32,
) (r *Redir, e error)

NewRedir .

func (*Redir) Run

func (r *Redir) Run()

Run 運行 透明代理

type Socks5

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

Socks5 代理服務器實現

func NewSocks5

func NewSocks5(laddr string,
	requestTimeout, bridgeTimeout time.Duration,
	bufferSize int,
	proxy5, request5, proxy4a, request4a *int32,
) (s *Socks5, e error)

NewSocks5 創建一個 socks5 服務器

func (*Socks5) Run

func (s *Socks5) Run()

Run 運行 服務

Jump to

Keyboard shortcuts

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