]> git.proxmox.com Git - pve-common.git/commit
daemon: create_reusable_socket: listen on IPv6 and IPv4
authorOguz Bektas <o.bektas@proxmox.com>
Wed, 24 Mar 2021 13:20:36 +0000 (14:20 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Apr 2021 16:00:20 +0000 (18:00 +0200)
commit390fc10dc4a696dd30646cbdd018ad08d855175f
tree0be8cfab06d8dfee859b85ac1d035a1d73c3abed
parentb15abdfe2e5017f1cb2c230889d35ebc54e4c0b3
daemon: create_reusable_socket: listen on IPv6 and IPv4

When the 'Domain' configuration of IO::Socket::IP is set to PF_INET6,
it will prefer IPv6, but since we don't set 'V6Only' it will also
listen on IPv4 interfaces[0].

Drop the now obsoleted '$family' parameter.

[0]: https://perldoc.perl.org/IO::Socket::IP#REPLACING-IO::Socket-DEFAULT-BEHAVIOUR

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Daemon.pm