diff --git a/Changelog b/Changelog index 78b056800..78b734794 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ * Unreleased - Christophe Dumez - v2.9.3 - BUGFIX: Fix btdigg plugin (Python3 support + torrent name in magnet links) + - BUGFIX: Fix banning of IPv6 peers (Closes #885021) - I18N: Add Georgian translation * Sat Oct 29 2011 - Christophe Dumez - v2.9.2 diff --git a/src/qtlibtorrent/filterparserthread.h b/src/qtlibtorrent/filterparserthread.h index 08a46cfd6..90853e2e3 100644 --- a/src/qtlibtorrent/filterparserthread.h +++ b/src/qtlibtorrent/filterparserthread.h @@ -365,13 +365,13 @@ public: start(); } - static void processFilterList(libtorrent::session *s, QStringList IPs) { + static void processFilterList(libtorrent::session *s, const QStringList& IPs) { // First, import current filter libtorrent::ip_filter filter = s->get_ip_filter(); foreach(const QString &ip, IPs) { qDebug("Manual ban of peer %s", ip.toLocal8Bit().constData()); boost::system::error_code ec; - libtorrent::address_v4 addr = libtorrent::address_v4::from_string(ip.toLocal8Bit().constData(), ec); + libtorrent::address addr = libtorrent::address::from_string(ip.toLocal8Bit().constData(), ec); Q_ASSERT(!ec); if(!ec) filter.add_rule(addr, addr, libtorrent::ip_filter::blocked);