Versions in this module Expand all Collapse all v1 v1.0.4 Sep 21, 2018 Changes in this version + func Copy(dst, src net.Conn) + func Main() + func Proxy(prot string, from, to string) + func ProxyTCP(from, to string) + func ProxyUDP(from, to string) + type DHCP struct + func NewDHCP(cfg *DHCPConfig) (*DHCP, error) + func (dhcp *DHCP) InUsed(ip string) bool + func (dhcp *DHCP) RecycleIP(ip string) + func (dhcp *DHCP) SelectIP(prefer string) (string, error) + func (dhcp *DHCP) Status() string + func (dhcp *DHCP) Use(ip string) + type DHCPConfig struct + type Forward struct + func NewForward() *Forward + func (forward *Forward) Add(cip string, conn net.Conn) + func (forward *Forward) Broadcast(sndqueue chan *GtunClientContext, buff []byte) + func (forward *Forward) Del(cip string) + func (forward *Forward) Get(cip string) (conn net.Conn) + func (forward *Forward) Peer(sndqueue chan *GtunClientContext, dst string, buff []byte) error + type ForwardConfig struct + type Frame []byte + func (f Frame) Invalid() bool + func (f Frame) IsIPV4() bool + type GtunClientContext struct + type Interface struct + func NewInterface(cfg *InterfaceConfig) (*Interface, error) + type InterfaceConfig struct + type Options struct + func ParseArgs() (*Options, error) + type Packet []byte + func (p Packet) Dst() string + func (p Packet) Invalid() bool + func (p Packet) Version() int + type Reverse struct + func NewReverse(cfg *ReverseConfig) (*Reverse, error) + type ReverseConfig struct + type ReversePolicy struct + From string + Proto string + To string + func LoadReversePolicy(path string) ([]*ReversePolicy, error) + type Server struct + func NewServer(cfg *ServerConfig) (*Server, error) + func (server *Server) Run() + func (server *Server) Stop() + type ServerConfig struct Incompatible versions in this module v2.0.1+incompatible Apr 1, 2019