Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 260 Bytes

readme.md

File metadata and controls

10 lines (7 loc) · 260 Bytes

使用方式

获取内网地址

NewAddr(4440).IntranetAddr().GetIPstr()

获取外网地址

 NewAddr(4441).ExternalAddr().GetIPstr()

获取内网地址 排除ip 172.16.21.77

NewAddr(4442).Exclude([]string{"172.16.21.77"}).GetIPstr()