fix: examples/server: dtls mode checking

This fixes using ssl to check if we are using dtls or not, when ssl is not yet
valid.

Fix: 060dfe1a69
This commit is contained in:
Marco Oliverio
2022-07-04 10:12:22 +02:00
parent 1077829f9d
commit 80f3db6e1d

View File

@ -2342,7 +2342,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
if (minVersion != SERVER_INVALID_VERSION) {
#ifdef WOLFSSL_DTLS13
if (wolfSSL_dtls(ssl)) {
if (doDTLS) {
switch (minVersion) {
case 4:
minVersion = WOLFSSL_DTLSV1_3;