[pve-devel] [PATCH manager] use localhost instead of 127.0.0.1 to listen with spiceterm

Dominik Csapak d.csapak at proxmox.com
Mon Mar 25 12:53:43 CET 2019


that is the name we use to connect from spiceproxy and can be either
ipv4 or ipv6

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2Tools.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2Tools.pm b/PVE/API2Tools.pm
index 2d1bdf25..9f782c92 100644
--- a/PVE/API2Tools.pm
+++ b/PVE/API2Tools.pm
@@ -166,7 +166,7 @@ sub run_spiceterm {
 
     my $timeout = 40; 
 
-    my $cmd = ['/usr/bin/spiceterm', '--port', $port, '--addr', '127.0.0.1',
+    my $cmd = ['/usr/bin/spiceterm', '--port', $port, '--addr', 'localhost',
 	       '--timeout', $timeout, '--authpath', $authpath, 
 	       '--permissions', $permissions];
 
-- 
2.11.0





More information about the pve-devel mailing list