Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxSize = 1024 MaxThread = 10 )
Variables ¶
View Source
var ( // ErrorEmptyChain is an error that implies the chain is empty. ErrorEmptyChain = errors.New("empty chain") )
View Source
var (
ErrorInvalidNode = errors.New("invalid node")
)
View Source
var ( // RouteNAT Globe route table for inner ip RouteNAT = NewNAT() )
View Source
var Server8422, _ = net.ResolveUDPAddr("udp", "localhost:8422")
Functions ¶
Types ¶
type Chain ¶
type Chain struct { Retries int // contains filtered or unexported fields }
func (*Chain) DialContext ¶
type Client ¶
type Client struct { Connector Transporter }
type Connector ¶
func UDPOverTCPTunnelConnector ¶
func UDPOverTCPTunnelConnector() Connector
type Handler ¶
func TCPHandler ¶
func TCPHandler() Handler
func TunHandler ¶
TunHandler creates a handler for tun tunnel.
type Node ¶
type Node struct { Addr string Protocol string Remote string // remote address, used by tcp/udp port forwarding Values url.Values Client *Client }
type Route ¶
Route example: -L "tcp://:10800" -L "tun://:8422?net=223.254.0.100/16" -L "tun:/10.233.24.133:8422?net=223.254.0.102/16&route=223.254.0.0/16" -L "tun:/127.0.0.1:8422?net=223.254.0.102/16&route=223.254.0.0/16,10.233.0.0/16" -F "tcp://127.0.0.1:10800"
func (*Route) GenerateServers ¶
type Transporter ¶
func TCPTransporter ¶
func TCPTransporter() Transporter
Click to show internal directories.
Click to hide internal directories.