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.