* [pmg-devel] [PATCH pmg-api] pmgproxy: allow setting LISTEN_IP parameter [not found] <99c76ae4-0810-f44d-25c4-3cdf8ce28dc0@proxmox.com> @ 2021-03-24 12:59 ` Oguz Bektas 2021-06-11 15:29 ` [pmg-devel] applied: " Stoiko Ivanov 0 siblings, 1 reply; 2+ messages in thread From: Oguz Bektas @ 2021-03-24 12:59 UTC (permalink / raw) To: pve-devel, pmg-devel 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@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 ^ permalink raw reply [flat|nested] 2+ messages in thread
* [pmg-devel] applied: [PATCH pmg-api] pmgproxy: allow setting LISTEN_IP parameter 2021-03-24 12:59 ` [pmg-devel] [PATCH pmg-api] pmgproxy: allow setting LISTEN_IP parameter Oguz Bektas @ 2021-06-11 15:29 ` Stoiko Ivanov 0 siblings, 0 replies; 2+ messages in thread From: Stoiko Ivanov @ 2021-06-11 15:29 UTC (permalink / raw) To: Oguz Bektas; +Cc: pmg-devel On Wed, 24 Mar 2021 13:59:31 +0100 Oguz Bektas <o.bektas@proxmox.com> wrote: > 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@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 = {}; > applied the patch, but pulled in the changes from pve-manager commit 8da3ad7ce8ca9d609f0e5be3860f63f3d1a58889 Huge Thanks! ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-11 15:37 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <99c76ae4-0810-f44d-25c4-3cdf8ce28dc0@proxmox.com> 2021-03-24 12:59 ` [pmg-devel] [PATCH pmg-api] pmgproxy: allow setting LISTEN_IP parameter Oguz Bektas 2021-06-11 15:29 ` [pmg-devel] applied: " Stoiko Ivanov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox