utils

package
v0.0.0-...-b9bbc83 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 GetRealAddr

func GetRealAddr(addr string) (string, error)

GetRealAddr 获取真实地址

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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