[pve-devel] [RFC 2/2 manager] proxy: allow setting BIND_IP for pveproxy

Oguz Bektas o.bektas at proxmox.com
Wed Feb 10 17:01:42 CET 2021


default to 0.0.0.0 to preserve backwards behavior

Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
 PVE/Service/pveproxy.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/Service/pveproxy.pm b/PVE/Service/pveproxy.pm
index 571a6bf5..ce1d42a6 100755
--- a/PVE/Service/pveproxy.pm
+++ b/PVE/Service/pveproxy.pm
@@ -70,7 +70,8 @@ sub init {
 	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 $bind_ip = $proxyconf->{BIND_IP} // '0.0.0.0'; # default
+    my $socket = $self->create_reusable_socket(8006, $bind_ip, $family);
 
     my $dirs = {};
 
-- 
2.20.1




More information about the pve-devel mailing list