proxyutil

package
v0.0.0-...-761797c Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

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

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

func IPFromRR

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