proxyutil

package
v0.60.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Overview

Package proxyutil contains helper functions that are used in all other dnsproxy packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPrefix added in v0.43.0

func AddPrefix(b []byte) (m []byte)

AddPrefix adds a 2-byte prefix with the DNS message length.

func IPFromRR added in v0.41.0

func IPFromRR(rr dns.RR) (ip netip.Addr)

IPFromRR returns the IP address from rr if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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