feross / SpoofMAC

:briefcase: Change your MAC address for debugging
https://feross.org/spoofmac/
3.02k stars 271 forks source link

Issue when showing all Wi-Fi interface names #52

Closed ghost closed 8 years ago

ghost commented 8 years ago

The program in the "Show only Wi-Fi interfaces" mode, currently only shows those interfaces that are exactly named "Wi-Fi". But in my PC, I often end up having names like "Wi-Fi 2", "Wi-Fi 3" etc (after changing network configs). I guess we should change line 352 in interface.py something like,

if port.lower() in wireless_port_names: to if port.lower().startswith("wi-fi") or (port.lower() == "airport"):

feross commented 8 years ago

Thanks opening this issue. Can you send a PR that fixes it? I'll merge and release.