ip

package
v1.11.41 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIps

func GetIps() ([]net.IP, error)

GetIps returns an array of IPs. It skips loop back, link-local, private ips

func IpChanged

func IpChanged(ipFile string, ips []net.IP) (bool, error)

Types

type Opts

type Opts struct {
	ExcludeAll  bool
	ExcludeNets []*net.IPNet
}

Jump to

Keyboard shortcuts

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