joshfinnie / archey-osx

An archey script clone for OS X
MIT License
89 stars 14 forks source link

Fixed empty IP address when en1 is not the default interface #4

Closed doque closed 9 years ago

doque commented 9 years ago

Sometimes instead of en1, en0 is the currently active interface. This fix checks if en1 has an IP address and, if this is not the case, reads the IP address from en0 instead.

joshfinnie commented 9 years ago

LGTM, thanks for the update.