summaryrefslogtreecommitdiffstats
path: root/7d4eaed41ae94237ed9e4ae72ac166b6e7617047.patch
diff options
context:
space:
mode:
Diffstat (limited to '7d4eaed41ae94237ed9e4ae72ac166b6e7617047.patch')
-rw-r--r--7d4eaed41ae94237ed9e4ae72ac166b6e7617047.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/7d4eaed41ae94237ed9e4ae72ac166b6e7617047.patch b/7d4eaed41ae94237ed9e4ae72ac166b6e7617047.patch
new file mode 100644
index 0000000..e05780b
--- /dev/null
+++ b/7d4eaed41ae94237ed9e4ae72ac166b6e7617047.patch
@@ -0,0 +1,25 @@
+From 7d4eaed41ae94237ed9e4ae72ac166b6e7617047 Mon Sep 17 00:00:00 2001
+From: Yurun <admin@yurunsoft.com>
+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();
+ }
+