xnet

package
v1.9.13 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Docker = net.IPNet{
	IP:   []byte{172, 16, 0, 0},
	Mask: []byte{255, 240, 0, 0},
}

Docker has common docker addresses (class B): https://en.wikipedia.org/wiki/Private_network - docker0 172.17.0.1/16 - br-xxxx 172.18.0.1/16 - hassio 172.30.32.1/23

Functions

func IPNets

func IPNets(ipFilter func(ip net.IP) bool) ([]*net.IPNet, error)

func ParseUnspecifiedPort

func ParseUnspecifiedPort(address string) int

ParseUnspecifiedPort will return port if address is unspecified ex. ":8555" or "0.0.0.0:8555"

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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