mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
2dfa1385c3
commit
af4eefa5fb
@ -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 {
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user