Merge pull request #230 from PunKeel/patch-1

Use https for the macvendors check
This commit is contained in:
Nikolaos Kamarinakis 2017-08-21 11:14:48 +03:00 committed by GitHub
commit 6ef3eaa76a

View File

@ -404,7 +404,7 @@ def getDefaultInterfaceMAC():
def resolveMac(mac):
try:
# sen request to macvendors.co
url = "http://macvendors.co/api/vendorname/"
url = "https://macvendors.co/api/vendorname/"
request = urllib.Request(url + mac, headers={'User-Agent': "API Browser"})
response = urllib.urlopen(request)
vendor = response.read()