made UPnP ignore devices that don't respond from a router IP (optional but on by default)

This commit is contained in:
Arvid Norberg
2008-01-07 05:48:28 +00:00
parent 1d6e0f5bf6
commit e05f396a5d
7 changed files with 52 additions and 4 deletions

View File

@@ -2339,7 +2339,8 @@ namespace detail
, m_listen_interface.address()
, m_settings.user_agent
, bind(&session_impl::on_port_mapping
, this, _1, _2, _3));
, this, _1, _2, _3)
, m_settings.upnp_ignore_nonrouters);
m_upnp->discover_device();
m_upnp->set_mappings(m_listen_interface.port(),