enclose ipv6 hosts in brackets in proxy_request()

This commit is contained in:
Wolfgang Bumiller 2015-05-21 16:13:40 +02:00 committed by Dietmar Maurer
parent d8006fa7bf
commit 648dcda954

View File

@ -583,6 +583,8 @@ sub proxy_request {
$target = "http://$host:85$uri";
# keep alive for localhost is not worth (connection setup is about 0.2ms)
$keep_alive = 0;
} elsif (Net::IP::ip_is_ipv6($host)) {
$target = "https://[$host]:8006$uri";
} else {
$target = "https://$host:8006$uri";
}