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 ¶
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.Proxies, ctl protect.Controller) (*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.
func NewTransport ¶
func NewTransport(ctx context.Context, id, rawurl string, addrs []string, px ipn.Proxies, ctl protect.Controller) (*transport, error)
NewTransport returns a POST-only DoH transport. `id` identifies this transport. `rawurl` is the DoH template in string form. `addrs` is a list of IP addresses to bootstrap dialers. `px` is the proxy provider, may be nil (eg for id == dnsx.Default)
Types ¶
This section is empty.