net

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package net includes common net functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterLocalNetIPs

func FilterLocalNetIPs(ips []netip.Addr) ([]netip.Addr, error)

FilterLocalNetIPs filters list of IPs with the local subnets (rfc1918, rfc4193).

func PreferredDualStackNodeIPs added in v1.8.1

func PreferredDualStackNodeIPs(preferIPv6 bool, ips []string) []string

PreferredDualStackNodeIPs returns the first IPv4 and IPv6 addresses from the list of IPs.

func SortedNodeIPs

func SortedNodeIPs(nodeIP string, first, second []string) (res []string)

SortedNodeIPs gets fists IP (excluded nodeIP) from the two sorted lists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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