diff --git a/src/ripple/peerfinder/impl/Logic.h b/src/ripple/peerfinder/impl/Logic.h index 1c0a1a005..947be01a9 100644 --- a/src/ripple/peerfinder/impl/Logic.h +++ b/src/ripple/peerfinder/impl/Logic.h @@ -280,7 +280,8 @@ public: if (iter != state->slots.end ()) { Slot::ptr const& self (iter->second); - assert (self->local_endpoint () == remote_endpoint); + assert ((self->local_endpoint () == boost::none) || + (self->local_endpoint () == remote_endpoint)); if (m_journal.warning) m_journal.warning << leftw (18) << "Logic dropping " << remote_endpoint << " as self connect";