Commit a01ed43d authored by Wolfgang Bumiller's avatar Wolfgang Bumiller Committed by Dietmar Maurer

localhost instead of 127.0.0.1 makes ipv6 life easier

parent 648dcda9
...@@ -402,7 +402,7 @@ sub websocket_proxy { ...@@ -402,7 +402,7 @@ sub websocket_proxy {
} }
if ($param->{port}) { if ($param->{port}) {
$remhost = '127.0.0.1'; $remhost = 'localhost';
$remport = $param->{port}; $remport = $param->{port};
} elsif ($param->{socket}) { } elsif ($param->{socket}) {
$remhost = 'unix/'; $remhost = 'unix/';
...@@ -835,7 +835,7 @@ sub handle_spice_proxy_request { ...@@ -835,7 +835,7 @@ sub handle_spice_proxy_request {
$reqstate->{hdl}->timeout(0); $reqstate->{hdl}->timeout(0);
$reqstate->{hdl}->wbuf_max(64*10*1024); $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; my $remport = $remip ? 3128 : $spiceport;
tcp_connect $remhost, $remport, sub { tcp_connect $remhost, $remport, sub {
......
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