netutil

package
v0.2024.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterfaceNameForAddr

func InterfaceNameForAddr(addr netip.Addr) (string, error)

InterfaceNameForAddr returns the name of the interface that the given IP address is associated with.

func OutboundAddr

func OutboundAddr() (netip.Addr, error)

OutboundAddr returns the systems preferred outbound IP address. This IP address is likely but not guaranteed to be the IP address that others can use to communicate with this system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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