Documentation ¶
Index ¶
- func DefaultTCPRouting(fr *tcp.ForwarderRequest) error
- func DefaultUDPRouting(stack *stack.Stack, fr *udp.ForwarderRequest) error
- func Disable()
- func Enable()
- func EndAllConnections()
- func InitializeResolver()
- func IsActive() bool
- func Reconnect()
- func ResolveQuery(msg []byte) ([]byte, error)
- func SystemShutdown()
- type Addr
- type ConnDefaultForward
- type ConnSPNForward
- func (c ConnSPNForward) Close() error
- func (c ConnSPNForward) LocalAddr() net.Addr
- func (c ConnSPNForward) Read(b []byte) (n int, err error)
- func (c ConnSPNForward) RemoteAddr() net.Addr
- func (c ConnSPNForward) SetDeadline(t time.Time) error
- func (c ConnSPNForward) SetReadDeadline(t time.Time) error
- func (c ConnSPNForward) SetWriteDeadline(t time.Time) error
- func (c ConnSPNForward) Write(b []byte) (n int, err error)
- type TunnelState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultTCPRouting ¶
func DefaultTCPRouting(fr *tcp.ForwarderRequest) error
func DefaultUDPRouting ¶
func DefaultUDPRouting(stack *stack.Stack, fr *udp.ForwarderRequest) error
func EndAllConnections ¶
func EndAllConnections()
func InitializeResolver ¶
func InitializeResolver()
func ResolveQuery ¶
func SystemShutdown ¶
func SystemShutdown()
Types ¶
type ConnDefaultForward ¶
type ConnDefaultForward struct {
// contains filtered or unexported fields
}
type ConnSPNForward ¶
type ConnSPNForward struct {
// contains filtered or unexported fields
}
func (ConnSPNForward) Close ¶
func (c ConnSPNForward) Close() error
func (ConnSPNForward) LocalAddr ¶
func (c ConnSPNForward) LocalAddr() net.Addr
func (ConnSPNForward) RemoteAddr ¶
func (c ConnSPNForward) RemoteAddr() net.Addr
func (ConnSPNForward) SetDeadline ¶
func (c ConnSPNForward) SetDeadline(t time.Time) error
func (ConnSPNForward) SetReadDeadline ¶
func (c ConnSPNForward) SetReadDeadline(t time.Time) error
func (ConnSPNForward) SetWriteDeadline ¶
func (c ConnSPNForward) SetWriteDeadline(t time.Time) error
type TunnelState ¶
Click to show internal directories.
Click to hide internal directories.