Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Close() error
- func (c *Client) DialConn(address *tunnel.Address, user statistic.User, metadata *tunnel.Metadata, ...) (tunnel.Conn, error)
- func (c *Client) DialPacket(user statistic.User, overlay tunnel.Tunnel) (tunnel.PacketConn, error)
- func (c *Client) LookBackAddress(address *tunnel.Address) *tunnel.Address
- func (client *Client) Route(domain string) int
- type Config
- type Conn
- type DnsConfig
- type FakePacketConn
- type PacketConn
- func (c *PacketConn) Close() error
- func (c *PacketConn) Epoch() time.Time
- func (c *PacketConn) Name() string
- func (c *PacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (c *PacketConn) ReadWithMetadata(p []byte) (int, *tunnel.Metadata, error)
- func (c *PacketConn) Recv() uint64
- func (c *PacketConn) Sent() uint64
- func (c *PacketConn) Tunnels() *tunnel.Tunnels
- func (c *PacketConn) User() statistic.User
- func (c *PacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
- func (c *PacketConn) WriteWithMetadata(p []byte, m *tunnel.Metadata) (int, error)
- type Pool
- type Tunnel
Constants ¶
View Source
const ( FakeIP = 0 Bypass = 1 Proxy = 2 )
View Source
const MaxPacketSize = 1024 * 8
View Source
const Name = "DNS"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DialPacket ¶
func (*Client) LookBackAddress ¶
type DnsConfig ¶
type DnsConfig struct { Enabled bool `json:"enabled" yaml:"enabled"` Bypass []string `json:"bypass" yaml:"bypass"` Proxy []string `json:"proxy" yaml:"proxy"` FakeIP []string `json:"fakeip" yaml:"fakeip"` FakeIPRange string `json:"fakeip_range" yaml:"fakeip-range"` DefaultPolicy string `json:"default_policy" yaml:"default-policy"` }
type FakePacketConn ¶
type FakePacketConn struct { *Client // contains filtered or unexported fields }
func (*FakePacketConn) Close ¶
func (c *FakePacketConn) Close() error
type PacketConn ¶
type PacketConn struct { tunnel.PacketConn *Client // contains filtered or unexported fields }
func (*PacketConn) Close ¶
func (c *PacketConn) Close() error
func (*PacketConn) Epoch ¶
func (c *PacketConn) Epoch() time.Time
func (*PacketConn) Name ¶
func (c *PacketConn) Name() string
func (*PacketConn) ReadWithMetadata ¶
func (*PacketConn) Recv ¶
func (c *PacketConn) Recv() uint64
func (*PacketConn) Sent ¶
func (c *PacketConn) Sent() uint64
func (*PacketConn) Tunnels ¶
func (c *PacketConn) Tunnels() *tunnel.Tunnels
func (*PacketConn) User ¶
func (c *PacketConn) User() statistic.User
func (*PacketConn) WriteWithMetadata ¶
Click to show internal directories.
Click to hide internal directories.