forward

package
v4.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 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(bp *coremain.BP, args interface{}) (p coremain.Plugin, err error)

Types

type Args

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

type UpstreamConfig

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

	// Deprecated: This field is preserved. It has no effect.
	// TODO: Remove it in v5.
	Trusted bool `yaml:"trusted"`
}

Jump to

Keyboard shortcuts

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