finish upstream subcommand
This commit is contained in:
13
utils/other_utils.go
Normal file
13
utils/other_utils.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"net"
|
||||
)
|
||||
|
||||
func IsValidIP(ip string) bool {
|
||||
res := net.ParseIP(ip)
|
||||
if res == nil {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user