netx

package
v0.0.0-...-110d06e Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPCode

func IPCode(ip net.IP) int

将IP转换成int32或int64类型

func InnerIP4

func InnerIP4() (net.IP, error)

InnerIP4 获取局域网IP4地址

func InnerIPWithDNS

func InnerIPWithDNS() (net.IP, error)

InnerIPWithDNS 使用在线DNS查询内网IP

func OuterIP

func OuterIP() (net.IP, error)

func OuterIPWithProxy

func OuterIPWithProxy(proxyUrl string) (net.IP, error)

OuterIPWithProxy 根据第三方IP服务,获取当前网络的公网IP

Types

This section is empty.

Jump to

Keyboard shortcuts

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