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
- type Config
- type Conn
- type DnsConfig
- type OutboundPacketConn
- type PacketConn
- type Server
- 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 ¶
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 OutboundPacketConn ¶ added in v1.0.8
type OutboundPacketConn struct { tunnel.PacketConn // contains filtered or unexported fields }
func (*OutboundPacketConn) Tunnels ¶ added in v1.0.8
func (c *OutboundPacketConn) Tunnels() *tunnel.Tunnels
func (*OutboundPacketConn) WriteWithMetadata ¶ added in v1.0.8
type PacketConn ¶
type PacketConn struct { tunnel.PacketConn // contains filtered or unexported fields }
func (*PacketConn) Name ¶
func (c *PacketConn) Name() string
func (*PacketConn) ReadWithMetadata ¶
func (*PacketConn) Tunnels ¶
func (c *PacketConn) Tunnels() *tunnel.Tunnels
type Server ¶ added in v1.0.8
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AcceptConn ¶ added in v1.0.8
func (*Server) AcceptPacket ¶ added in v1.0.8
Click to show internal directories.
Click to hide internal directories.