dns

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProxyType = "dns"
)

Variables

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	*base.Proxy

	TargetURL netip.AddrPort
	ActionURL netip.AddrPort
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(
	cfg common.ProxyConfig,
	rs *rules.RuleSet,
	db *database.DB,
) (*Proxy, error)

func (*Proxy) Shutdown

func (p *Proxy) Shutdown(ctx context.Context) error

func (*Proxy) Start

func (p *Proxy) Start() error

Jump to

Keyboard shortcuts

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