Commit 648dcda9 authored by Wolfgang Bumiller's avatar Wolfgang Bumiller Committed by Dietmar Maurer

enclose ipv6 hosts in brackets in proxy_request()

parent d8006fa7
......@@ -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";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment