[pve-devel] [PATCH pmg-api] pmgproxy: allow setting LISTEN_IP parameter
Oguz Bektas
o.bektas at proxmox.com
Wed Mar 24 13:59:31 CET 2021
LISTEN_IP is defined in /etc/default/pmgproxy.
this depends on the changes in pve-common and pve-http-server (#2997)
Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
src/PMG/Service/pmgproxy.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PMG/Service/pmgproxy.pm b/src/PMG/Service/pmgproxy.pm
index b2fdc69..11cefe8 100755
--- a/src/PMG/Service/pmgproxy.pm
+++ b/src/PMG/Service/pmgproxy.pm
@@ -64,8 +64,8 @@ sub init {
my $lockfh = IO::File->new(">>${accept_lock_fn}") ||
die "unable to open lock file '${accept_lock_fn}' - $!\n";
- my $family = PVE::Tools::get_host_address_family($self->{nodename});
- my $socket = $self->create_reusable_socket(8006, undef, $family);
+ my $listen_ip = $proxyconf->{LISTEN_IP} // "::0";
+ my $socket = $self->create_reusable_socket(8006, $listen_ip);
my $dirs = {};
--
2.20.1
More information about the pve-devel
mailing list