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

listen on ipv6 if the node's hostname resolves to ipv6

parent 101c2b86
...@@ -26,6 +26,8 @@ use PVE::ExtJSIndex5; ...@@ -26,6 +26,8 @@ use PVE::ExtJSIndex5;
use PVE::NoVncIndex; use PVE::NoVncIndex;
use PVE::TouchIndex; use PVE::TouchIndex;
use PVE::Tools;
use base qw(PVE::Daemon); use base qw(PVE::Daemon);
$SIG{'__WARN__'} = sub { $SIG{'__WARN__'} = sub {
...@@ -85,7 +87,8 @@ sub init { ...@@ -85,7 +87,8 @@ sub init {
my $lockfh = IO::File->new(">>${accept_lock_fn}") || my $lockfh = IO::File->new(">>${accept_lock_fn}") ||
die "unable to open lock file '${accept_lock_fn}' - $!\n"; 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 = {}; my $dirs = {};
......
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