Skip to content

Commit 925c5ab

Browse files
committed
impl disable_tls config
1 parent 040d6cf commit 925c5ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control/src/main/kotlin/spp/probe/SourceProbe.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ object SourceProbe {
166166
if (connected.get()) return
167167
val options = NetClientOptions()
168168
.setReconnectAttempts(Int.MAX_VALUE).setReconnectInterval(5000)
169-
.setSsl(System.getenv("SPP_DISABLE_TLS") != "true")
169+
.setSsl(!ProbeConfiguration.spp.getBoolean("disable_tls", System.getenv("SPP_DISABLE_TLS") == "true"))
170170
.setTrustAll(!ProbeConfiguration.spp.getBoolean("verify_host", true))
171171
.apply {
172172
if (ProbeConfiguration.getString("platform_certificate") != null) {

0 commit comments

Comments
 (0)