utils

package
v0.0.0-...-cfeb3e9 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InterfaceAddrsFilter = func(iface *net.Interface, ip net.IP) bool {
	return !ip.IsLoopback() && !ip.IsMulticast() && !ip.IsInterfaceLocalMulticast() && !ip.IsLinkLocalMulticast() && !ip.IsLinkLocalUnicast()
}

Functions

func GetListenAddress

func GetListenAddress(iface *net.Interface, port uint16) (address string, err error)

func MakeUUID

func MakeUUID(unique string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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