dnstun

package
v0.0.0-...-ac0c594 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "dnstun"

Variables

This section is empty.

Functions

This section is empty.

Types

type DNServer

type DNServer struct {
	Name string
	IP   chrome.StringList
	Over string
	Port uint16
}

type Options

type Options struct {
	ListenAddr string `yaml:"on"`

	Proxy chrome.Proxy `yaml:"over"`

	Server  DNServer
	Servers []DNServer

	Routes    []RouteOptions
	Redirects map[string]string

	Cache bool

	IPv4 struct {
		Only bool
	}

	Dial chrome.DialOptions
	TTL  struct {
		Min, Max time.Duration
	}
	Idle struct {
		Timeout time.Duration
	}
	Read struct {
		Timeout time.Duration
	}
	Write struct {
		Timeout time.Duration
	}
	// contains filtered or unexported fields
}

type RouteOptions

type RouteOptions struct {
	Name     string
	What     string
	Checksum string       `yaml:"-"`
	Proxy    chrome.Proxy `yaml:"over"`
	Servers  []DNServer
}

type Service

type Service struct{}

func (Service) Name

func (Service) Name() string

func (Service) Options

func (Service) Options() any

func (Service) Run

func (Service) Run(ctx chrome.Context)

Jump to

Keyboard shortcuts

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