Fix the issue that IPv6 address can't be banned

The ban action doesn't depend on ipfilter.
This commit is contained in:
brvphoenix 2020-10-20 03:40:26 -07:00 committed by sledgehammer999
parent 6ea3acdaea
commit 102d628c0a
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
2 changed files with 7 additions and 9 deletions

View file

@ -550,7 +550,7 @@ void SyncController::torrentPeersAction()
peer[KEY_PEER_COUNTRY] = Net::GeoIPManager::CountryName(pi.country());
}
peers[pi.address().ip.toString() + ':' + QString::number(pi.address().port)] = peer;
peers[pi.address().toString()] = peer;
}
data["peers"] = peers;