func FormatIPForURL(ip string) string {
	if strings.Contains(ip, ":") {
		return fmt.Sprintf("[%s]", ip)
	}
	return ip
}
// FormatIPForURL basically puts brackets [] around the IP if it is IPv6
FormatIPForURL basically puts brackets [] around the IP if it is IPv6
// FormatIPForURL basically puts brackets [] around the IP if it is IPv6
func FormatIPForURL(ip string) string {
	if strings.Contains(ip, ":") {
		return fmt.Sprintf("[%s]", ip)
	}
	return ip
}
func FormatIPForURL ( ip string ) string { if strings . Contains ( ip , " " ) { return fmt . Sprintf ( " " , ip ) } return ip }
FormatIPForURL basically puts brackets [] around the IP if it is IPv6
FormatIPForURL basically puts brackets [] around the IP if it is IPv6