...

Package addr

import "github.com/gonitro/nitro/util/addr"
Overview
Index

Overview ▾

func AppendPrivateBlocks

func AppendPrivateBlocks(bs ...string)

AppendPrivateBlocks append private network blocks

func Extract

func Extract(addr string) (string, error)

Extract returns a real ip

func IPs

func IPs() []string

IPs returns all known ips

func IsLocal

func IsLocal(addr string) bool

IsLocal tells us whether an ip is local