mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
- Support peer manual ban (from peer list)
This commit is contained in:
parent
47fc4679d4
commit
7c84551150
14 changed files with 77 additions and 5 deletions
|
@ -363,6 +363,7 @@ void bittorrent::configureSession() {
|
|||
// * Maximum ratio
|
||||
setDeleteRatio(Preferences::getDeleteRatio());
|
||||
// Ip Filter
|
||||
FilterParserThread::processFilterList(s, Preferences::bannedIPs());
|
||||
if(Preferences::isFilteringEnabled()) {
|
||||
enableIPFilter(Preferences::getFilter());
|
||||
}else{
|
||||
|
@ -516,6 +517,11 @@ bool bittorrent::hasActiveTorrents() const {
|
|||
return false;
|
||||
}
|
||||
|
||||
void bittorrent::banIP(QString ip) {
|
||||
FilterParserThread::processFilterList(s, QStringList(ip));
|
||||
Preferences::banIP(ip);
|
||||
}
|
||||
|
||||
// Delete a torrent from the session, given its hash
|
||||
// permanent = true means that the torrent will be removed from the hard-drive too
|
||||
void bittorrent::deleteTorrent(QString hash, bool permanent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue