Skip to content

go 实现的ip段解析,如黑名单白名单效验!支持多种格式!

License

Notifications You must be signed in to change notification settings

chinaDL/goIPRange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipRange 库

// 支持如下格式
192.168.1.1/30
192.168.1.1/24
192.168.1.1/16
192.168.1.1/8
192.168.1.1/2
192.168.0.1-192.168.255.255
192.168.1.1-192.168.255.255
192.168.1.1-255
192.168.1.1-2.255
192.168.1.*
192.168.*.*
192.*.*.*
192.*.1.*
192.168.1.1
192.168.1.1,192.168.1.2

img.png

/cmd/main.go 中有使用示例

About

go 实现的ip段解析,如黑名单白名单效验!支持多种格式!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages