This commit is contained in:
Simple-Tracker 2024-06-22 12:51:30 +08:00
parent a234c47764
commit 8876b7c1c1
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ type ReleaseStruct struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
Body string `json:"body"`
PreRelease bool `json:"prerelease`
PreRelease bool `json:"prerelease"`
}
func ProcessVersion(version string) (int, int, int, int, string) {

View File

@ -45,7 +45,7 @@ func CheckPrivateIP(ip string) bool {
if ipParsed == nil {
return false
}
return ipParsed.IsPrivate()
return (ipParsed.IsLoopback() || ipParsed.IsPrivate())
}
func ParseIPCIDR(ip string) *net.IPNet {
if !strings.Contains(ip, "/") {