doh

package
v0.0.0-...-ea10d50 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MPL-2.0 Imports: 30 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Copyright (c) 2023 RethinkDNS and its authors.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Index

Constants

View Source
const (
	DohPortU16 = uint16(443)
)

Variables

This section is empty.

Functions

func NewOdohTransport

func NewOdohTransport(ctx context.Context, id, endpoint, target string, addrs []string, px ipn.ProxyProvider, m ipmap.IPMapper) (*transport, error)

NewTransport returns a POST-only Oblivious DoH transport. `id` identifies this transport. `endpoint` is the ODoH proxy that liaisons with the target. `target` is the ODoH resolver. `addrs` is a list of IP addresses to bootstrap endpoint dialers. `px` is the proxy provider, never nil. `m` is the IPMapper implementation (usually the dnsx resolver) for internal queries, never nil.

func NewTransport

func NewTransport(ctx context.Context, id, rawurl, ipurl string, addrs []string, px ipn.ProxyProvider, m ipmap.IPMapper) (*transport, error)

NewTransport returns a POST-only DoH transport. `id` identifies this transport. `rawurl` is the DoH template in string form. `ipurl` is an optional IP-literal endpoint (ex: https://1.1.1.1/dns-query) `addrs` is a list of IP addresses to bootstrap dialers. `px` is the proxy provider, may be nil (eg for id == dnsx.Default) `m` is the IPMapper implementation (usually the dnsx resolver) for internal queries, never nil.

func NewTransport2

func NewTransport2(ctx context.Context, id, rawurl string, addrs []string, px ipn.ProxyProvider, m ipmap.IPMapper) (*transport, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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