INNER CODE UNIT · Go

Contains

projectdiscovery/cloudlist · internal/runner/runner.go:272

func Contains(s []string, e string) bool {
	for _, a := range s {
		if strings.EqualFold(a, e) {
			return true
		}
	}
	return false
}

func sanitizePrivateIPs(resource *schema.Resource, exclude bool) {
	if !exclude || resource == nil {
		return
	}
	resource.PrivateIpv4 = ""
	resource.PrivateIpv6 = ""

	if isPrivateIP(resource.PublicIPv4) {
		resource.PublicIPv4 = ""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…