Add a callback for filtering peer requests