From 7d4eaed41ae94237ed9e4ae72ac166b6e7617047 Mon Sep 17 00:00:00 2001 From: Yurun Date: Sun, 20 Sep 2020 14:43:03 +0800 Subject: [PATCH] Fix #3681 (#3682) --- src/protocol/ssl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/protocol/ssl.cc b/src/protocol/ssl.cc index 61a3e56c0e..c9069c1a8a 100644 --- a/src/protocol/ssl.cc +++ b/src/protocol/ssl.cc @@ -71,9 +71,11 @@ static int swSSL_verify_cookie(SSL *ssl, const uchar *cookie, uint cookie_len); static void MAYBE_UNUSED swSSL_lock_callback(int mode, int type, const char *file, int line); static const SSL_METHOD *swSSL_get_method(swSSL_option *option) { +#ifdef SW_SUPPORT_DTLS if (option->protocols & SW_SSL_DTLS) { return DTLS_method(); } +#endif return SSLv23_method(); }