Skip to content

Commit

Permalink
Add User-Agent to macvendor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dschaper authored May 13, 2020
1 parent 3d7c095 commit fe42790
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/macvendor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@

# Download raw data from Wireshark's website
# We use the official URL recommended in the header of this file
# Thanks to mibere for the update
print("Downloading...")
opener = urllib.request.build_opener()
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
urllib.request.install_opener(opener)
urllib.request.urlretrieve("https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf", "manuf.data")
print("...done")

Expand Down

0 comments on commit fe42790

Please sign in to comment.