diff --git a/bindings/python/src/torrent_handle.cpp b/bindings/python/src/torrent_handle.cpp index bfe8594b2..3a312d586 100644 --- a/bindings/python/src/torrent_handle.cpp +++ b/bindings/python/src/torrent_handle.cpp @@ -207,7 +207,7 @@ list get_download_queue(torrent_handle& handle) block_info["bytes_progress"] = i->blocks[k].bytes_progress; block_info["block_size"] = i->blocks[k].block_size; block_info["peer"] = make_tuple( - boost::lexical_cast(i->blocks[k].peer.address()), i->blocks[k].peer.port()); + boost::lexical_cast(i->blocks[k].peer().address()), i->blocks[k].peer().port()); block_list.append(block_info); } partial_piece["blocks"] = block_list;