Fixed actor tools changes for typeinfo

This commit is contained in:
Adolfo Gómez García 2022-06-17 13:54:52 +02:00
parent 3cc42e1e73
commit 3a4d571a6c
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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: