Replaces the check of which peers count as this host, for tests; anything but a function restores the real check.
a function of the peer and local addresses, or null
Replaces the check of which peers count as this host, for tests; anything but a function restores the real check.