Wire most of the work from today together
This commit is contained in:
parent
40aa08c86c
commit
e57519e58d
12 changed files with 328 additions and 132 deletions
7
utils/net.go
Normal file
7
utils/net.go
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package utils
|
||||
|
||||
import "net"
|
||||
|
||||
func IsIPv6IP(ip net.IP) bool {
|
||||
return ip.To4() == nil && ip.To16() != nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue