package
Version:
v1.8.86
Opens a new window with list of versions in this module.
Published: Sep 26, 2024
License: LGPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func GetLocalPrivateIP() string
GetLocalPrivateIP 获取本机第一个私有环回地址
GetLocalPublicIP 获取本机的公网IP地址
IsPrivateIP 判断给定的 IP 地址是否是私有IP(包括环回IP和局域网IP)
IsValidPublicIP 验证一个 IP 地址是否是有效的公网 IP 和ip_address文件里面的检测是否私有地址是不同的
Source Files
¶
Click to show internal directories.
Click to hide internal directories.