mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-12 14:30:54 +08:00
优化代码
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user