[pve-devel] [PATCH 3/4] optional socket family parameter for create_reusable_socket
Wolfgang Bumiller
w.bumiller at proxmox.com
Fri May 8 12:24:43 CEST 2015
---
src/PVE/Daemon.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/PVE/Daemon.pm b/src/PVE/Daemon.pm
index 0d0e16b..ddbe656 100644
--- a/src/PVE/Daemon.pm
+++ b/src/PVE/Daemon.pm
@@ -782,7 +782,7 @@ sub register_status_command {
# some useful helper
sub create_reusable_socket {
- my ($self, $port, $host) = @_;
+ my ($self, $port, $host, $family) = @_;
die "no port specifed" if !$port;
@@ -805,6 +805,7 @@ sub create_reusable_socket {
LocalAddr => $host,
LocalPort => $port,
Listen => SOMAXCONN,
+ Family => $family,
Proto => 'tcp',
ReuseAddr => 1) ||
die "unable to create socket - $@\n";
--
2.1.4
More information about the pve-devel
mailing list