dohserver

package module
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const (
	VERSION    = "2.2.5"
	USER_AGENT = "DNS-over-HTTPS/" + VERSION + " (+https://github.com/m13253/dns-over-https)"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RemoteAddr       string   `toml:"remote_addr"`
	Path             string   `toml:"path"`
	Upstream         []string `toml:"upstream"`
	Timeout          uint     `toml:"timeout"`
	Tries            uint     `toml:"tries"`
	Verbose          bool     `toml:"verbose"`
	DebugHTTPHeaders []string `toml:"debug_http_headers"`
	LogGuessedIP     bool     `toml:"log_guessed_client_ip"`
	LocalIPFilter    bool     `toml:"ecs_allow_non_global_ip"`
	ECSFullSubnet    bool     `toml:"ecs_use_precise_ip"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

type DNSRequest

type DNSRequest struct {
	// contains filtered or unexported fields
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(conf *Config) (*Server, error)

func (*Server) Handler

func (s *Server) Handler() http.Handler

Jump to

Keyboard shortcuts

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