extensions are now instantiated for web seeds as well

This commit is contained in:
Arvid Norberg
2007-04-02 20:00:24 +00:00
parent 2fc73e9aeb
commit ec2962dd62
7 changed files with 93 additions and 72 deletions

View File

@@ -487,6 +487,8 @@ namespace libtorrent { namespace
boost::shared_ptr<peer_plugin> metadata_plugin::new_connection(
peer_connection* pc)
{
bt_peer_connection* c = dynamic_cast<bt_peer_connection*>(pc);
if (!c) return boost::shared_ptr<peer_plugin>();
return boost::shared_ptr<peer_plugin>(new metadata_peer_plugin(m_torrent, *pc, *this));
}