1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

revert changes to WOL node, bump package

to close #528
This commit is contained in:
Dave Conway-Jones 2019-05-26 14:52:19 +01:00
parent 2dfa1385c3
commit af4eefa5fb
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 1 additions and 5 deletions

View File

@ -13,10 +13,6 @@ module.exports = function(RED) {
this.on("input", function(msg) { this.on("input", function(msg) {
var mac = this.mac || msg.mac || null; var mac = this.mac || msg.mac || null;
var host = this.host || msg.host || '255.255.255.255'; var host = this.host || msg.host || '255.255.255.255';
var h = host.split('.');
h.pop();
h.push('255');
host = h.join('.');
if (mac != null) { if (mac != null) {
if (chk.test(mac)) { if (chk.test(mac)) {
try { try {

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-wol", "name" : "node-red-node-wol",
"version" : "0.0.10", "version" : "0.0.12",
"description" : "A Node-RED node to send Wake-On-LAN (WOL) magic packets", "description" : "A Node-RED node to send Wake-On-LAN (WOL) magic packets",
"dependencies" : { "dependencies" : {
"wake_on_lan" : "1.0.0" "wake_on_lan" : "1.0.0"