[tor-commits] [tor/release-0.2.8] Refactor connection_or_client_learned_peer_id for bug18812