Added "ignore port check" if WOLAPP is configured

This commit is contained in:
Adolfo Gómez García 2021-03-23 12:25:04 +01:00
parent 52d3ffeac3
commit b9ba304493

View File

@ -46,7 +46,7 @@ from uds.core.util import config
from uds.core.services import types as serviceTypes
from .deployment import IPMachineDeployed
from .service_base import IPServiceBase
from .service_base import IPServiceBase, WOLAPP
# Not imported at runtime, just for type checking
if typing.TYPE_CHECKING:
@ -204,7 +204,7 @@ class IPMachinesService(IPServiceBase):
continue # The check failed not so long ago, skip it...
self.storage.putPickle(theIP, now)
# Now, check if it is available on port, if required...
if self._port > 0:
if self._port > 0 and not WOLAPP: # If configured WOLAPP, then check port is a nonsense...
if (
connection.testServer(theIP, self._port, timeOut=0.5)
is False