mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 04:32:30 +00:00
* Added new API for client type and version info, which will replace
the code currently in the client. * Fixed rtorrent.rc to show the right name for the encryption option. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@804 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@
|
||||
# outgoing connections but retries with encryption if they fail, preferring
|
||||
# plaintext to RC4 encryption after the encrypted handshake
|
||||
#
|
||||
# encryption_options = allow_incoming,enable_retry,prefer_plaintext
|
||||
# encryption = allow_incoming,enable_retry,prefer_plaintext
|
||||
|
||||
#
|
||||
# Do not modify the following parameters unless you know what you're doing.
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <torrent/rate.h>
|
||||
#include <torrent/data/block_transfer.h>
|
||||
#include <torrent/data/piece.h>
|
||||
#include <torrent/peer/client_list.h>
|
||||
|
||||
#include "core/download.h"
|
||||
#include "rak/algorithm.h"
|
||||
@@ -138,7 +139,11 @@ WindowPeerList::redraw() {
|
||||
x += 7;
|
||||
|
||||
char buf[128];
|
||||
control->client_info()->print(buf, buf + 128, p.id().data());
|
||||
torrent::ClientInfo clientInfo = torrent::client_list()->parse_id(p.id());
|
||||
|
||||
std::strncpy(buf, clientInfo.short_description(), 128);
|
||||
|
||||
// control->client_info()->print(buf, buf + 128, p.id().data());
|
||||
|
||||
m_canvas->print(x, y, "%s", buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user