finish upstream subcommand

This commit is contained in:
MDK
2023-06-26 15:58:04 +08:00
parent b59fbce07c
commit 38be845348
7 changed files with 59 additions and 16 deletions

13
utils/other_utils.go Normal file
View 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
}