This pull request addresses issue #10 and changes the default behaviour to how it used to be without using ifconfig. I think it's preferable to add all network devices instead of only the one that is currently in use (since that can quickly change).
Alternatively, if you want to keep the new behaviour, the man page should be updated to reflect this. You might also consider using ip link and checking for "state UP".
This pull request addresses issue #10 and changes the default behaviour to how it used to be without using ifconfig. I think it's preferable to add all network devices instead of only the one that is currently in use (since that can quickly change).
Alternatively, if you want to keep the new behaviour, the man page should be updated to reflect this. You might also consider using ip link and checking for "state UP".