// Package gitea provides a client for the Gitea API. // ipcheck.go re-exports the IsBlockedIP function from internal/netutil for use // by this package's safe dialer (client.go) and for backward compatibility with // any callers that previously imported it from here. // // The implementation has moved to internal/netutil so it can be shared with the // validate-url subcommand (cmd/review-bot/validateurl.go) without creating a // dependency from VCS-generic code on the Gitea-specific package. package gitea import ( "net" "gitea.weiker.me/rodin/review-bot/internal/netutil" ) // IsBlockedIP reports whether ip is in a blocked address range. // It delegates to internal/netutil.IsBlockedIP; see that function for the full // list of blocked ranges and IPv6-mapped IPv4 normalization behavior. func IsBlockedIP(ip net.IP) bool { return netutil.IsBlockedIP(ip) }