func()

in remoteip/parser.go [159:173]


func (p *RemoteIPParser) filterProxies(ips []string) []string {
	if len(ips) == 0 {
		return ips
	}

	filtered := make([]string, 0, len(ips))

	for _, ip := range ips {
		if !p.isTrustedProxy(ip) {
			filtered = append(filtered, ip)
		}
	}

	return filtered
}