File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
boot/src/main/kotlin/spp/probe Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ object SourceProbe {
176
176
.setSsl(ProbeConfiguration .sslEnabled)
177
177
.setTrustAll(! ProbeConfiguration .spp.getValue(" verify_host" , true ).toString().toBooleanStrict())
178
178
.apply {
179
- if (ProbeConfiguration .getString(" platform_certificate" ) != null ) {
179
+ if (ProbeConfiguration .getString(" platform_certificate" )?.isNotBlank() == true ) {
180
180
val myCaAsABuffer = Buffer .buffer(
181
181
" -----BEGIN CERTIFICATE-----" +
182
182
ProbeConfiguration .getString(" platform_certificate" ) +
@@ -346,7 +346,7 @@ object SourceProbe {
346
346
private fun updateCaCertIfNecessary () {
347
347
val caCertFile = File (PROBE_DIRECTORY , " ca" + File .separator + " ca.crt" )
348
348
if (ProbeConfiguration .sslEnabled && ! caCertFile.exists()) {
349
- if (ProbeConfiguration .getString(" platform_certificate" ) != null ) {
349
+ if (ProbeConfiguration .getString(" platform_certificate" )?.isNotBlank() == true ) {
350
350
val myCaAsABuffer = Buffer .buffer(
351
351
" -----BEGIN CERTIFICATE-----\n " +
352
352
ProbeConfiguration .getString(" platform_certificate" ).let {
You can’t perform that action at this time.
0 commit comments