When examining interfaces to find an address, discard non-up ones.

Patch from "hantwister" on trac. Fixes bug #9904; bugfix on
0.2.3.11-alpha.
Merge remote-tracking branch 'origin/maint-0.2.4'