Don't add TLS param if no encryption is enabled
This commit is contained in:
parent
093a870376
commit
29b2f00111
|
@ -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…
Reference in New Issue