diff --git a/actor/src/udsactor/http/server.py b/actor/src/udsactor/http/server.py index 6aea79c6..4a7212f8 100644 --- a/actor/src/udsactor/http/server.py +++ b/actor/src/udsactor/http/server.py @@ -159,7 +159,7 @@ class HTTPServerThread(threading.Thread): # self._server.socket = ssl.wrap_socket(self._server.socket, certfile=self.certFile, server_side=True) context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) - context.options = ssl.CERT_NONE + # context.options = ssl.CERT_NONE context.load_cert_chain(certfile=self._certFile, password=password) self._server.socket = context.wrap_socket(self._server.socket, server_side=True) diff --git a/actor/src/udsactor/tools.py b/actor/src/udsactor/tools.py index 38764157..c924865b 100644 --- a/actor/src/udsactor/tools.py +++ b/actor/src/udsactor/tools.py @@ -36,7 +36,7 @@ import typing from udsactor.log import logger if typing.TYPE_CHECKING: - from udsactor.types import ActorConfigurationType, InterfaceInfoType + from udsactor.types import InterfaceInfoType class ScriptExecutorThread(threading.Thread): @@ -64,8 +64,8 @@ def strToNoIPV4Network(net: typing.Optional[str]) -> typing.Optional[ipaddress.I def validNetworkCards( - net: typing.Optional[str], cards: typing.Iterable[InterfaceInfoType] -) -> typing.List[InterfaceInfoType]: + net: typing.Optional[str], cards: typing.Iterable['InterfaceInfoType'] +) -> typing.List['InterfaceInfoType']: try: subnet = strToNoIPV4Network(net) except Exception as e: