From 0ee52a17fec109c3de25e93936e78f7104239ce8 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 30 Mar 2008 08:40:53 +0000 Subject: [PATCH] Fix peer info. --- deluge/core/torrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 6cfe82a64..51219fa3f 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -238,10 +238,10 @@ class Torrent: num_pieces_complete += 1 progress = num_pieces_complete / len(peer.pieces) * 100 ret.append({ - "ip": peer.ip, + "ip": "%s:%s" % (peer.ip[0], peer.ip[1]), "up_speed": peer.up_speed, "down_speed": peer.down_speed, - "country": peer.country, + "country": deluge.xmlrpclib.Binary(peer.country), "client": deluge.xmlrpclib.Binary(peer.client), "progress": progress })