diff --git a/doc/rpc-spec.txt b/doc/rpc-spec.txt index 65e9da06b..638fd2d3b 100644 --- a/doc/rpc-spec.txt +++ b/doc/rpc-spec.txt @@ -466,7 +466,7 @@ | | yes | session-stats | added "current-stats" | | yes | torrent-get | new arg "downloadDir" ------+---------+-----------+----------------+------------------------------- - 6 | 1.60 | yes | torrent-get | new arg "pieces" + 5 | 1.60 | yes | torrent-get | new arg "pieces" | | yes | torrent-get | new arg "fileStats" | | yes | torrent-set | new arg "ratio" | | yes | torrent-set | new arg "downloadLimited" diff --git a/libtransmission/rpcimpl.c b/libtransmission/rpcimpl.c index 38d11aa68..0f0e3a00f 100644 --- a/libtransmission/rpcimpl.c +++ b/libtransmission/rpcimpl.c @@ -1190,7 +1190,7 @@ sessionGet( tr_session * s, tr_bencDictAddInt ( d, TR_PREFS_KEY_PEER_PORT, tr_sessionGetPeerPort( s ) ); tr_bencDictAddInt ( d, TR_PREFS_KEY_PEER_PORT_RANDOM_ON_START, tr_sessionGetPeerPortRandomOnStart( s ) ); tr_bencDictAddBool( d, TR_PREFS_KEY_PORT_FORWARDING, tr_sessionIsPortForwardingEnabled( s ) ); - tr_bencDictAddInt ( d, "rpc-version", 4 ); + tr_bencDictAddInt ( d, "rpc-version", 5 ); tr_bencDictAddInt ( d, "rpc-version-minimum", 1 ); tr_bencDictAddReal( d, "seedRatioLimit", tr_sessionGetRatioLimit( s ) ); tr_bencDictAddBool( d, "seedRatioLimited", tr_sessionIsRatioLimited( s ) );