فهرست منبع

active back the sending of the magic packet

nico 8 سال پیش
والد
کامیت
652118e223
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      neurons/wake_on_lan/Wake_on_lan.py

+ 2 - 2
neurons/wake_on_lan/Wake_on_lan.py

@@ -27,7 +27,7 @@ class Wake_on_lan(NeuronModule):
                          % (self.mac_address, self.broadcast_address, self.port))
 
             # send the magic packet, the mac address format will be check by the lib
-            # wol.send_magic_packet(mac_address, ip_address=broadcast_address, port=port)
+            wol.send_magic_packet(self.mac_address, ip_address=self.broadcast_address, port=self.port)
 
     def _is_parameters_ok(self):
         """
@@ -42,4 +42,4 @@ class Wake_on_lan(NeuronModule):
             raise InvalidParameterException(
                 "port argument must be an integer. Remove quotes in your configuration.")
 
-        return True
+        return True