enclose ipv6 hosts in brackets in proxy_request()
This commit is contained in:
parent
d8006fa7bf
commit
648dcda954
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user