forward

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PluginType = "forward"

Variables

This section is empty.

Functions

func Init

func Init(tag string, argsMap map[string]interface{}) (p handler.Plugin, err error)

Types

type Args

type Args struct {
	// options for dnsproxy upstream
	Upstream           []Upstream `yaml:"upstream"`
	Timeout            int        `yaml:"timeout"`
	InsecureSkipVerify bool       `yaml:"insecure_skip_verify"`
	Bootstrap          []string   `yaml:"bootstrap"`

	// options for mosdns
	Deduplicate bool `yaml:"deduplicate"`
}

type Upstream

type Upstream struct {
	Addr   string   `yaml:"addr"`
	IPAddr []string `yaml:"ip_addr"`
}

Jump to

Keyboard shortcuts

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