ip_helper

package
v0.3.5-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeviceAllIP added in v0.3.1

func GetDeviceAllIP(port string) []string

func GetExternalIPV4

func GetExternalIPV4() string

获取外网ip

func GetExternalIPV6

func GetExternalIPV6() string

获取外网ip

func GetLoclIp

func GetLoclIp() string

获取本地ip

func HasLocalIP added in v0.3.1

func HasLocalIP(ip net.IP) bool

func IsIPv4

func IsIPv4(address string) bool

func IsIPv6

func IsIPv6(address string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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