dnsinterceptor

package
v0.36.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2025 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

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) AddRoute

func (d *DnsInterceptor) AddRoute(context.Context) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL