Documentation
¶
Index ¶
- Constants
- func AddRelayTransport(p *DcMulti, relaystamp string) error
- func AddTransport(p *DcMulti, id, serverstamp string) (*serverinfo, error)
- type DcMulti
- func (proxy *DcMulti) Add(t x.DNSTransport) bool
- func (proxy *DcMulti) AddAll(serverscsv string) (int, error)
- func (proxy *DcMulti) AddGateways(routescsv string) (int, error)
- func (proxy *DcMulti) Get(id *x.Gostr) (x.DNSTransport, error)
- func (p *DcMulti) GetAddr() *x.Gostr
- func (p *DcMulti) GetRelay() x.Proxy
- func (p *DcMulti) ID() *x.Gostr
- func (p *DcMulti) IPPorts() []netip.AddrPort
- func (proxy *DcMulti) LiveTransports() *x.Gostr
- func (p *DcMulti) P50() int64
- func (p *DcMulti) Query(network string, q *dns.Msg, smm *x.DNSSummary) (r *dns.Msg, err error)
- func (proxy *DcMulti) Refresh() (*x.Gostr, error)
- func (proxy *DcMulti) Remove(uid *x.Gostr) bool
- func (proxy *DcMulti) RemoveAll(servernamescsv string) (int, error)
- func (proxy *DcMulti) RemoveGateways(routescsv string) (int, error)
- func (p *DcMulti) Status() int
- func (proxy *DcMulti) Stop() error
- func (p *DcMulti) Type() *x.Gostr
- type ServersInfo
Constants ¶
View Source
const ( // NonceSize is what the name suggests NonceSize = 24 // TagSize is what the name suggests TagSize = 16 // HalfNonceSize is half of NonceSize HalfNonceSize = NonceSize / 2 // PublicKeySize is the size of a public key PublicKeySize = 32 // QueryOverhead is the amount of request overhead due to client-magic, public key, nonce, and tag QueryOverhead = xdns.ClientMagicLen + PublicKeySize + HalfNonceSize + TagSize // ResponseOverhead is the amount of answer overhead due to server-magic, nonce, and tag ResponseOverhead = len(xdns.ServerMagic) + NonceSize + TagSize )
View Source
const ( ActionNone = iota // No action has been taken ActionContinue // Continue with the request ActionDrop // Drop the request ActionSynth // Use synthesized response )
View Source
const ( ReturnCodePass = iota ReturnCodeSynth )
Variables ¶
This section is empty.
Functions ¶
func AddRelayTransport ¶
AddRelayTransport creates and adds a relay server to p
func AddTransport ¶
AddTransport creates and adds a dnscrypt transport to p
Types ¶
type DcMulti ¶
DcMulti is a dnsx.TransportMult supporting dnscrypt servers and relays
func NewDcMult ¶
func NewDcMult(pctx context.Context, px ipn.ProxyProvider, ctl protect.Controller) *DcMulti
NewDcMult creates a dnscrypt proxy
func (*DcMulti) Add ¶
func (proxy *DcMulti) Add(t x.DNSTransport) bool
Add implements dnsx.TransportMult
func (*DcMulti) AddGateways ¶
AddGateways adds relay servers
func (*DcMulti) LiveTransports ¶
LiveTransports returns csv of dnscrypt server-names currently in-use
func (*DcMulti) RemoveGateways ¶
RemoveGateways removes relay servers
type ServersInfo ¶
Click to show internal directories.
Click to hide internal directories.