mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-31 10:41:08 +00:00
test: Log IP of download server in get_previous_releases.py
This commit is contained in:
parent
c1f0a89d9c
commit
cdaf25f9c3
@ -122,6 +122,9 @@ def download_from_url(url, archive):
|
||||
if response.status != 200:
|
||||
raise RuntimeError(f"HTTP request failed with status code: {response.status}")
|
||||
|
||||
sock_info = response.fp.raw._sock.getpeername()
|
||||
print(f"Connected to {sock_info[0]}")
|
||||
|
||||
total_size = int(response.getheader("Content-Length"))
|
||||
progress_bytes = 0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user