diff --git a/deluge/ui/gtkui/common.py b/deluge/ui/gtkui/common.py index 514e73768..b7b454813 100644 --- a/deluge/ui/gtkui/common.py +++ b/deluge/ui/gtkui/common.py @@ -154,7 +154,11 @@ def add_peer_dialog(): response = peer_dialog.run() if response: value = txt_ip.get_text() - if deluge.common.is_ip(value): - client.connect_peer(component.get("TorrentView").get_selected_torrent(), value) + ip = value.split(":")[0] + port = value.split(":")[1] + if deluge.common.is_ip(ip): + id = component.get("TorrentView").get_selected_torrent() + log.debug("adding peer %s to %s", value, id) + client.connect_peer(id, value) peer_dialog.destroy() return True diff --git a/deluge/ui/gtkui/glade/dgtkpopups.glade b/deluge/ui/gtkui/glade/dgtkpopups.glade index 9b0bef57d..b669fff08 100644 --- a/deluge/ui/gtkui/glade/dgtkpopups.glade +++ b/deluge/ui/gtkui/glade/dgtkpopups.glade @@ -1,6 +1,6 @@ - + True @@ -117,7 +117,7 @@ True - Enter Peer IP to Add + Enter Peer IP:Port to Add