Using HTTPS for macvendor lookups instead of HTTP (#17)
Updates WPS, MACInfo, SiteSurvey, and Status modules.pull/20/merge
parent
4a8791edbb
commit
5d005e4ba2
|
@ -17,7 +17,7 @@ class MACInfo extends Module
|
|||
private function getMACInfo($mac)
|
||||
{
|
||||
if($this->IsValidMAC($mac)){
|
||||
$url = "http://macvendors.co/api/" . $mac . "/JSON";
|
||||
$url = "https://macvendors.co/api/" . $mac . "/JSON";
|
||||
$retJSON = file_get_contents($url);
|
||||
if($retJSON != false){
|
||||
$mInfo = json_decode($retJSON);
|
||||
|
@ -42,4 +42,4 @@ class MACInfo extends Module
|
|||
$pregResult = preg_match('/([a-fA-F0-9]{2}[:|\-]?){6}/', $mac);
|
||||
return ($pregResult != 0 && $pregResult != NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
"tetra"
|
||||
],
|
||||
"title": "MAC Info",
|
||||
"version": "1.2"
|
||||
"version": "1.3"
|
||||
}
|
||||
|
|
|
@ -385,7 +385,7 @@ class SiteSurvey extends Module
|
|||
|
||||
private function getMACInfo()
|
||||
{
|
||||
$content = file_get_contents("http://api.macvendors.com/".$this->request->mac);
|
||||
$content = file_get_contents("https://api.macvendors.com/".$this->request->mac);
|
||||
$this->response = array('title' => $this->request->mac, "output" => $content);
|
||||
}
|
||||
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
"tetra"
|
||||
],
|
||||
"title": "Site Survey",
|
||||
"version": "1.2"
|
||||
}
|
||||
"version": "1.3"
|
||||
}
|
||||
|
|
|
@ -248,7 +248,7 @@ class Status extends Module
|
|||
|
||||
private function getMACInfo()
|
||||
{
|
||||
$content = file_get_contents("http://api.macvendors.com/".$this->request->mac);
|
||||
$content = file_get_contents("https://api.macvendors.com/".$this->request->mac);
|
||||
$this->response = array('title' => $this->request->mac, "output" => $content);
|
||||
}
|
||||
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
"tetra"
|
||||
],
|
||||
"title": "Status",
|
||||
"version": "1.1"
|
||||
}
|
||||
"version": "1.2"
|
||||
}
|
||||
|
|
|
@ -349,7 +349,7 @@ class wps extends Module
|
|||
|
||||
private function getMACInfo()
|
||||
{
|
||||
$content = file_get_contents("http://api.macvendors.com/".$this->request->mac);
|
||||
$content = file_get_contents("https://api.macvendors.com/".$this->request->mac);
|
||||
$this->response = array('title' => $this->request->mac, "output" => $content);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue