[pve-devel] [PATCH manager] pveproxy: add LISTEN variable to /etc/default/pveproxy
Wolfgang Bumiller
w.bumiller at proxmox.com
Wed Nov 15 14:27:47 CET 2017
On Wed, Nov 15, 2017 at 02:10:36PM +0100, Wolfgang Bumiller wrote:
> diff --git a/PVE/API2Tools.pm b/PVE/API2Tools.pm
> index f1df2384..47cce416 100644
> --- a/PVE/API2Tools.pm
> +++ b/PVE/API2Tools.pm
> @@ -230,6 +230,7 @@ sub read_proxy_config {
> $shcmd .= 'echo \"POLICY:\$POLICY\";';
> $shcmd .= 'echo \"CIPHERS:\$CIPHERS\";';
> $shcmd .= 'echo \"DHPARAMS:\$DHPARAMS\";';
> + $shcmd .= 'echo \"LISTEN:\$LISTEN\";';
>
> my $data = -f $conffile ? `bash -c "$shcmd"` : '';
>
> @@ -252,6 +253,14 @@ sub read_proxy_config {
> $res->{$key} = $value;
> } elsif ($key eq 'DHPARAMS') {
> $res->{$key} = $value;
> + } elsif ($key eq 'LISTEN') {
> + die "invalid listen address: '$value'\n"
> + if $value !~ /^([^:]+)(?::(\d+))?$/;
nvm this last minute change which broke ipv6 entries here...
feedback/discussion about the rest of the patch is welcome
More information about the pve-devel
mailing list