优化代码

This commit is contained in:
GoEdgeLab
2023-08-08 15:39:00 +08:00
parent 72c390fba5
commit 2a5aefe7f1
22 changed files with 27 additions and 53 deletions
+1 -4
View File
@@ -34,10 +34,7 @@ func IsLocalIP(ipString string) bool {
// IPv6
if strings.Contains(ipString, ":") {
if ip.String() == "::1" {
return true
}
return false
return ip.String() == "::1"
}
// IPv4