Using HTTPS for macvendor lookups instead of HTTP (#17)

Updates WPS, MACInfo, SiteSurvey, and Status modules.
This commit is contained in:
trashbo4t
2018-03-14 16:02:47 -04:00
committed by Sebastian Kinne
parent 4a8791edbb
commit 5d005e4ba2
7 changed files with 10 additions and 10 deletions

View File

@@ -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);
}
}
}