Closed doque closed 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.
en1
en0
LGTM, thanks for the update.
Sometimes instead of
en1
,en0
is the currently active interface. This fix checks ifen1
has an IP address and, if this is not the case, reads the IP address fromen0
instead.