[pve-devel] [PATCH 2/2] listen on ipv6 if the node's hostname resolves to ipv6

Wolfgang Bumiller w.bumiller at proxmox.com
Fri May 8 12:36:29 CEST 2015


---
 bin/pveproxy | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/pveproxy b/bin/pveproxy
index fe25a80..3864444 100755
--- a/bin/pveproxy
+++ b/bin/pveproxy
@@ -26,6 +26,8 @@ use PVE::ExtJSIndex5;
 use PVE::NoVncIndex;
 use PVE::TouchIndex;
 
+use PVE::Tools;
+
 use base qw(PVE::Daemon);
 
 $SIG{'__WARN__'} = sub {
@@ -85,7 +87,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(8006);
+    my $family = PVE::Tools::get_host_address_family($self->{nodename});
+    my $socket = $self->create_reusable_socket(8006, undef, $family);
 
     my $dirs = {};
 
-- 
2.1.4




More information about the pve-devel mailing list