aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-12-14 12:48:01 +0100
committerGravatar Christian Hesse <mail@eworm.de>2018-12-14 12:48:01 +0100
commitb8830ee6a5b28272e74eaab339e9ceb61d212ba1 (patch)
tree350a109dec57682f06faa05904abab44b4c83ba7
parenteda89ba64391dc6b41c7d9762656143caad1f77b (diff)
collect-wireless-mac: send the mac's vendor part only
-rw-r--r--collect-wireless-mac.capsman2
-rw-r--r--collect-wireless-mac.local2
-rw-r--r--collect-wireless-mac.template2
3 files changed, 3 insertions, 3 deletions
diff --git a/collect-wireless-mac.capsman b/collect-wireless-mac.capsman
index 2fd05c4..5e38bd6 100644
--- a/collect-wireless-mac.capsman
+++ b/collect-wireless-mac.capsman
@@ -41,7 +41,7 @@
:do {
$CertificateAvailable "731d3d9cfaa061487a1d71445a42f67df0afca2a6c2d2f98ff7b3ce112b1f568";
:set vendor ([ / tool fetch mode=https check-certificate=yes-without-crl \
- url=("https://api.macvendors.com/" . $mac) output=user as-value ]->"data");
+ url=("https://api.macvendors.com/" . [ :pick $mac 0 8 ]) output=user as-value ]->"data");
} on-error={
:set vendor "unknown vendor";
}
diff --git a/collect-wireless-mac.local b/collect-wireless-mac.local
index d6ece7d..1a1e5ac 100644
--- a/collect-wireless-mac.local
+++ b/collect-wireless-mac.local
@@ -41,7 +41,7 @@
:do {
$CertificateAvailable "731d3d9cfaa061487a1d71445a42f67df0afca2a6c2d2f98ff7b3ce112b1f568";
:set vendor ([ / tool fetch mode=https check-certificate=yes-without-crl \
- url=("https://api.macvendors.com/" . $mac) output=user as-value ]->"data");
+ url=("https://api.macvendors.com/" . [ :pick $mac 0 8 ]) output=user as-value ]->"data");
} on-error={
:set vendor "unknown vendor";
}
diff --git a/collect-wireless-mac.template b/collect-wireless-mac.template
index 59b2e72..a3e8eb9 100644
--- a/collect-wireless-mac.template
+++ b/collect-wireless-mac.template
@@ -43,7 +43,7 @@
:do {
$CertificateAvailable "731d3d9cfaa061487a1d71445a42f67df0afca2a6c2d2f98ff7b3ce112b1f568";
:set vendor ([ / tool fetch mode=https check-certificate=yes-without-crl \
- url=("https://api.macvendors.com/" . $mac) output=user as-value ]->"data");
+ url=("https://api.macvendors.com/" . [ :pick $mac 0 8 ]) output=user as-value ]->"data");
} on-error={
:set vendor "unknown vendor";
}