Deal with URLs with literal IPv6 addresses (#645)
authorAndré Cruz <acruz@cloudflare.com>
Fri, 19 Jun 2020 15:42:01 +0000 (16:42 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2020 15:42:01 +0000 (16:42 +0100)
commit4afa8da8ceb80a5aac70547e7410cc2615551bd6
tree7ef148037d794d54a65002bdeafdb73634789803
parent1bc768014cf6815f7e9d694e0292e77dd10f3235
Deal with URLs with literal IPv6 addresses (#645)

Recent versions of Go have started enforcing the usage of
brackets in URLs with literal IPv6 addresses. This change
prevents the attempt to resolve an address in the form
[address]. URL.Hostname() takes care of striping the brackets.

Signed-off-by: André Cruz <acruz@cloudflare.com>
prober/http.go