Don't add TLS param if no encryption is enabled

tags/smeserver-zabbix-proxy-0.3.1-1 0.3.0_el5
Daniel Berteaud 9 years ago
parent 1d093fd18a
commit 2d65ef4d83
  1. 4
      root/etc/e-smith/templates/etc/zabbix/zabbix_proxy.conf/85TLS

@ -25,8 +25,8 @@ _EOF
$OUT .= "TLSServerCertIssuer=$issuer\n" if ($issuer ne ''); $OUT .= "TLSServerCertIssuer=$issuer\n" if ($issuer ne '');
$OUT .= "TLSServerCertSubject=$subject\n" if ($subject ne ''); $OUT .= "TLSServerCertSubject=$subject\n" if ($subject ne '');
} }
my $encryptions = (scalar @encryptions > 0) ? join(',', @encryptions) : 'unencrypted'; my $encryptions = (scalar @encryptions > 0) ? join(',', @encryptions) : '';
$OUT .=<<_EOF; $OUT .=<<_EOF if ($encryptions ne '');
TLSConnect=$encryptions TLSConnect=$encryptions
TLSAccept=$encryptions TLSAccept=$encryptions
_EOF _EOF

Loading…
Cancel
Save