tools

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExternalIpv4

func GetExternalIpv4() (string, error)

func GetExternalIpv6

func GetExternalIpv6() (string, error)

获取本机的公网ipv6地址。优先获取eui64格式地址。 如果本机没有公网地址,则会返回实际访问外网使用的ipv6地址(一般是上级路由公网地址),同时返回一个error

Types

This section is empty.

Jump to

Keyboard shortcuts

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