Documentation ¶
Index ¶
- type DnsInterceptor
- func (d *DnsInterceptor) AddAllowedIPs(peerKey string) error
- func (d *DnsInterceptor) AddRoute(context.Context) error
- func (d *DnsInterceptor) RemoveAllowedIPs() error
- func (d *DnsInterceptor) RemoveRoute() error
- func (d *DnsInterceptor) ServeDNS(w dns.ResponseWriter, r *dns.Msg)
- func (d *DnsInterceptor) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DnsInterceptor ¶
type DnsInterceptor struct {
// contains filtered or unexported fields
}
func New ¶
func New( rt *route.Route, routeRefCounter *refcounter.RouteRefCounter, allowedIPsRefCounter *refcounter.AllowedIPsRefCounter, statusRecorder *peer.Status, dnsServer nbdns.Server, peerStore *peerstore.Store, ) *DnsInterceptor
func (*DnsInterceptor) AddAllowedIPs ¶
func (d *DnsInterceptor) AddAllowedIPs(peerKey string) error
func (*DnsInterceptor) RemoveAllowedIPs ¶
func (d *DnsInterceptor) RemoveAllowedIPs() error
func (*DnsInterceptor) RemoveRoute ¶
func (d *DnsInterceptor) RemoveRoute() error
func (*DnsInterceptor) ServeDNS ¶
func (d *DnsInterceptor) ServeDNS(w dns.ResponseWriter, r *dns.Msg)
ServeDNS implements the dns.Handler interface
func (*DnsInterceptor) String ¶
func (d *DnsInterceptor) String() string
Click to show internal directories.
Click to hide internal directories.