Accessing IPv6 resolvable URL with port (e.g. localhost:12345) results in Bad Address in Strawberry Perl 5.30.1
问题 When using strawberry perl 5.30.1 under Windows 10 with IPv6 enabled, URLs with Portnumbers cannot be resolved properly due to what appears to be a bug in the DNS parser of Perl. For the following test, we have a simple webserver listening on Port 8810 for all interfaces. Port 12345 does NOT host anything. Following is the script we use for reproduction: use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new(); my $result=$ua->get("http://localhost:8810/"); print "(DNS