inbound

package
v0.0.0-...-4829b00 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package inbound implements dns server for inbound connection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	HTTPMux *http.ServeMux
	// contains filtered or unexported fields
}

func NewServer

func NewServer(bindAddress string, debugHTTPAddress string, dispatcher outbound.Dispatcher, rejectQType []uint16, dohEnabled bool) *Server

func (*Server) DumpCache

func (s *Server) DumpCache(w http.ResponseWriter, req *http.Request)

func (*Server) Run

func (s *Server) Run()

func (*Server) ServeDNS

func (s *Server) ServeDNS(w dns.ResponseWriter, q *dns.Msg)

func (*Server) ServeDNSHttp

func (s *Server) ServeDNSHttp(w http.ResponseWriter, r *http.Request)

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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