We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7bc77e commit 5b755acCopy full SHA for 5b755ac
1 file changed
kotlin/examples/quic_client/src/main/kotlin/Main.kt
@@ -35,13 +35,14 @@ fun main() {
35
println("QUIC Engine created.")
36
37
// 3. TLS options — insecureSkipVerify=true for demo broker only
38
+ val enableTlsKeyLog = !System.getenv("SSLKEYLOGFILE").isNullOrBlank()
39
val tlsOpts = MqttTlsOptionsFfi(
40
caCertFile = null,
41
clientCertFile = null,
42
clientKeyFile = null,
43
insecureSkipVerify = true,
44
alpnProtocols = listOf(),
- enableKeyLog = true // Enable TLS keylog for debugging QUIC traffic
45
+ enableKeyLog = enableTlsKeyLog // Enable TLS keylog for debugging QUIC traffic
46
)
47
48
// 4. Resolve broker and open non-blocking UDP socket
0 commit comments