fix upnp mapping typo

This commit is contained in:
arvidn 2016-02-14 17:19:29 -08:00
parent a69de84482
commit 9d1f2b18ed
1 changed files with 2 additions and 2 deletions

View File

@ -6607,7 +6607,7 @@ namespace aux {
error_code ec;
tcp::endpoint ep = m_udp_socket.local_endpoint(ec);
if (!ec) {
if (m_udp_mapping[1] != -1) m_upnp->delete_mapping(m_udp_mapping[0]);
if (m_udp_mapping[1] != -1) m_upnp->delete_mapping(m_udp_mapping[1]);
m_udp_mapping[1] = m_upnp->add_mapping(upnp::udp
, ep.port(), ep.port());
}
@ -6618,7 +6618,7 @@ namespace aux {
error_code ec;
tcp::endpoint ep = m_ssl_udp_socket.local_endpoint(ec);
if (!ec) {
if (m_ssl_udp_mapping[1] != -1) m_upnp->delete_mapping(m_ssl_udp_mapping[0]);
if (m_ssl_udp_mapping[1] != -1) m_upnp->delete_mapping(m_ssl_udp_mapping[1]);
m_ssl_udp_mapping[1] = m_upnp->add_mapping(upnp::udp
, ep.port(), ep.port());
}