mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Support per-peer rate limiting
This commit is contained in:
@@ -508,6 +508,16 @@ void QTorrentHandle::connect_peer(asio::ip::tcp::endpoint const& adr, int source
|
||||
h.connect_peer(adr, source);
|
||||
}
|
||||
|
||||
void QTorrentHandle::set_peer_upload_limit(asio::ip::tcp::endpoint ip, int limit) const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
h.set_peer_upload_limit(ip, limit);
|
||||
}
|
||||
|
||||
void QTorrentHandle::set_peer_download_limit(asio::ip::tcp::endpoint ip, int limit) const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
h.set_peer_download_limit(ip, limit);
|
||||
}
|
||||
|
||||
//
|
||||
// Operators
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user