Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed circuit from peer_info #7700

Merged
merged 1 commit into from
Nov 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,6 @@ async def get_downloads(self, request):
del peer_info['have']
if 'extended_version' in peer_info:
peer_info['extended_version'] = _safe_extended_peer_info(peer_info['extended_version'])
# Does this peer represent a hidden services circuit?
if peer_info.get('port') == CIRCUIT_ID_PORT and self.tunnel_community:
tc = self.tunnel_community
circuit_id = tc.ip_to_circuit_id(peer_info['ip'])
circuit = tc.circuits.get(circuit_id, None)
if circuit:
peer_info['circuit'] = circuit_id

download_json["peers"] = peer_list

Expand Down
Loading