]> git.proxmox.com Git - pve-common.git/commit
daemon: add compat code for pmgproxy 6.x
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 5 May 2021 14:36:24 +0000 (16:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 7 May 2021 14:19:29 +0000 (16:19 +0200)
commita3777dce67cf17cafa82deeeedd9e6067eeb2e2e
tree83266c453e9d464a916dd48dcc3522a6875b116f
parent2f8be3bfda203065b22e60862e5f98d831a46921
daemon: add compat code for pmgproxy 6.x

The changes to the listening behavior introduced with PVE 6.4 break
backwardscompatibility w.r.t. listening address and logging, which
should not be changed without explictly notifying the user.

This patch re-adds the family parameter, which is still used by
pmgproxy and based on its existence creates the socket as before.

compared to the IO::Socket::IP->new call used before
390fc10dc4a696dd30646cbdd018ad08d855175f, the only change is the
renaming of 'LocalAddr' to 'LocalHost' (which are synonymous in
IO::Socket::IP [0])

It can simply be reverted with the release of pmg-api 7.0 (where
we'll record the change in the release-notes and upgrade-page)

[0] https://perldoc.perl.org/IO::Socket::IP
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PVE/Daemon.pm