瀏覽代碼

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