Documentation ¶ Index ¶ type Config type Protocol func New(ctx context.Context, cfg *Config) (*Protocol, error) func (p *Protocol) FixedIPs() []string func (p *Protocol) HandleTCP(conn net.Conn) func (p *Protocol) HandleUDP(conn net.Conn) func (p *Protocol) LookupHost(ctx context.Context, req *dns.Msg) *dns.Msg Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { PrivateKey string `yaml:"private_key"` PeerPublicKey string `yaml:"peer_public_key"` Endpoint string `yaml:"endpoint"` Domain string `yaml:"domain"` Address string `yaml:"address"` DNS []string `yaml:"dns"` IPs []string `yaml:"ips"` } type Protocol ¶ type Protocol struct { // contains filtered or unexported fields } func New ¶ func New(ctx context.Context, cfg *Config) (*Protocol, error) func (*Protocol) FixedIPs ¶ func (p *Protocol) FixedIPs() []string func (*Protocol) HandleTCP ¶ func (p *Protocol) HandleTCP(conn net.Conn) func (*Protocol) HandleUDP ¶ func (p *Protocol) HandleUDP(conn net.Conn) func (*Protocol) LookupHost ¶ func (p *Protocol) LookupHost(ctx context.Context, req *dns.Msg) *dns.Msg Source Files ¶ View all Source files impl.go Click to show internal directories. Click to hide internal directories.