Add local address matching support to be_listening.

Issue #414