[pve-devel] [PATCH 1/2] localhost instead of 127.0.0.1 makes ipv6 life easier
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue May 26 16:09:37 CEST 2015
---
PVE/HTTPServer.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/HTTPServer.pm b/PVE/HTTPServer.pm
index cd5f637..927abc0 100755
--- a/PVE/HTTPServer.pm
+++ b/PVE/HTTPServer.pm
@@ -402,7 +402,7 @@ sub websocket_proxy {
}
if ($param->{port}) {
- $remhost = '127.0.0.1';
+ $remhost = 'localhost';
$remport = $param->{port};
} elsif ($param->{socket}) {
$remhost = 'unix/';
@@ -835,7 +835,7 @@ sub handle_spice_proxy_request {
$reqstate->{hdl}->timeout(0);
$reqstate->{hdl}->wbuf_max(64*10*1024);
- my $remhost = $remip ? $remip : "127.0.0.1";
+ my $remhost = $remip ? $remip : "localhost";
my $remport = $remip ? 3128 : $spiceport;
tcp_connect $remhost, $remport, sub {
--
2.1.4
More information about the pve-devel
mailing list