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
parent 66f0e6a8f2
commit 799ad0feff
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;