forked from shaba/openuds
Added "ignore port check" if WOLAPP is configured
This commit is contained in:
parent
52d3ffeac3
commit
b9ba304493
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user