adafruit-pi-finder
Advanced tools
Comparing version 2.0.4 to 2.1.0
@@ -37,2 +37,8 @@ var ip = require('ip'), | ||
proto.subnet = false; | ||
proto.whitelist = [ | ||
/b8:27:eb/, // rasberry pi ethernet | ||
/00:e0:4c/, // realtek | ||
/00:14:78/, // tp-link | ||
/00:0c:43/ // ralink | ||
]; | ||
@@ -71,4 +77,8 @@ proto.start = function(cb) { | ||
if(/b8:27:eb/.test(mac)) { | ||
return next(null, host); | ||
for(var i=0; i < this.whitelist.length; i++) { | ||
if(this.whitelist[i].test(mac)) { | ||
return next(null, host); | ||
} | ||
} | ||
@@ -75,0 +85,0 @@ |
{ | ||
"name": "adafruit-pi-finder", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"description": "An atom-shell based utility for finding Raspberry Pis on your local network", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
269574
15
6052