upnp and lsd update. added a broadcast_socket and made the upnp connection use the locally bound ip to specify its address in the soap requests

This commit is contained in:
Arvid Norberg
2007-09-09 23:52:34 +00:00
parent 4fcdea4172
commit 0d02fe0539
13 changed files with 513 additions and 292 deletions

View File

@@ -1709,16 +1709,6 @@ namespace detail
bool new_listen_address = m_listen_interface.address() != new_interface.address();
if (new_listen_address)
{
if (m_natpmp.get())
m_natpmp->rebind(new_interface.address());
if (m_upnp.get())
m_upnp->rebind(new_interface.address());
if (m_lsd.get())
m_lsd->rebind(new_interface.address());
}
if (m_natpmp.get())
m_natpmp->set_mappings(m_listen_interface.port(), 0);
if (m_upnp.get())