From 4d03eefa2f1e2e5ae50c1b9c6a2697ccdad31dba Mon Sep 17 00:00:00 2001 From: Emil Kondayan Date: Tue, 7 Nov 2023 09:22:48 +0200 Subject: [PATCH] Fixed: access incorrect member of module ssl * IsSSL() - compare the instance of _socket with SSLContext instead of SSLSocket --- MicroWebSrv2/libs/XAsyncSockets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MicroWebSrv2/libs/XAsyncSockets.py b/MicroWebSrv2/libs/XAsyncSockets.py index 836fed0..1507d9a 100644 --- a/MicroWebSrv2/libs/XAsyncSockets.py +++ b/MicroWebSrv2/libs/XAsyncSockets.py @@ -827,7 +827,7 @@ def CliAddr(self) : @property def IsSSL(self) : return ( hasattr(ssl, 'SSLContext') and \ - isinstance(self._socket, ssl.SSLSocket) ) + isinstance(self._socket, ssl.SSLContext) ) @property def SendingBuffer(self) :