From 5df8f640d8d33aadaf766d2b00cebc5183662b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 23 Mar 2021 16:12:51 +0100 Subject: [PATCH] Added config for WOL on UDS --- server/src/uds/services/PhysicalMachines/service_multi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/uds/services/PhysicalMachines/service_multi.py b/server/src/uds/services/PhysicalMachines/service_multi.py index 04a7b573..eea843f9 100644 --- a/server/src/uds/services/PhysicalMachines/service_multi.py +++ b/server/src/uds/services/PhysicalMachines/service_multi.py @@ -203,8 +203,10 @@ class IPMachinesService(IPServiceBase): if self._port > 0 and self._skipTimeOnFailure > 0 and self.cache.get('port{}'.format(theIP)): continue # The check failed not so long ago, skip it... self.storage.putPickle(theIP, now) + # Is WOL enabled? + wolENABLED = bool(theMAC and self.parent().wolURL(theIP)) # Now, check if it is available on port, if required... - if self._port > 0 and not self.parent().wolURL(theIP): # If configured WOL, check is a nonsense + if self._port > 0 and not wolENABLED: # If configured WOL, check is a nonsense if ( connection.testServer(theIP, self._port, timeOut=0.5) is False