forked from shaba/openuds
Fixed actor tools changes for typeinfo
This commit is contained in:
parent
3cc42e1e73
commit
3a4d571a6c
@ -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)
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user