Use https for the macvendors check

This commit is contained in:
PunKeel 2017-08-20 00:01:14 +01:00 committed by GitHub
parent f7bd3b0330
commit 191f1bc8df
1 changed files with 2 additions and 2 deletions

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()
@ -484,4 +484,4 @@ if __name__ == '__main__':
# commence scanning process
scanNetwork()
main()
main()