[pve-devel] [PATCH] spiceproxy: same condition for ipv6 socket as in pveproxy

Wolfgang Bumiller w.bumiller at proxmox.com
Tue May 12 16:06:25 CEST 2015


---
 bin/spiceproxy | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/spiceproxy b/bin/spiceproxy
index fbeb7a6..07acf32 100755
--- a/bin/spiceproxy
+++ b/bin/spiceproxy
@@ -60,7 +60,8 @@ sub init {
     my $lockfh = IO::File->new(">>${accept_lock_fn}") ||
 	die "unable to open lock file '${accept_lock_fn}' - $!\n";
 
-    my $socket = $self->create_reusable_socket(3128);
+    my $family = PVE::Tools::get_host_address_family($self->{nodename});
+    my $socket = $self->create_reusable_socket(3128, undef, $family);
 
     $self->{server_config} = {
 	base_handler_class => 'PVE::API2',
-- 
2.1.4





More information about the pve-devel mailing list