Documentation ¶
Index ¶
- type BasicUpstream
- type Upstream
- func NewDoHUpstream(urlEndpoint, addr, socks5 string, tlsConfig *tls.Config) (Upstream, error)
- func NewDoTUpstream(addr, socks5 string, idleTimeout time.Duration, tlsConfig *tls.Config) Upstream
- func NewTCPUpstream(addr, socks5 string, idleTimeout time.Duration) Upstream
- func NewUDPUpstream(addr string) Upstream
- func NewUpstreamServer(c *config.BasicUpstreamConfig, rootCAs *x509.CertPool) (Upstream, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicUpstream ¶ added in v1.5.0
type BasicUpstream struct {
// contains filtered or unexported fields
}
type Upstream ¶
Upstream represents a dns upstream
func NewDoHUpstream ¶
func NewDoTUpstream ¶
func NewUDPUpstream ¶
func NewUpstreamServer ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.