fix typo in natpmp::start

Calling update_mapping() on a mapping with protocol set to none is a no-op so
I'm pretty sure this check was meant to skip over such mappings.
This commit is contained in:
Steven Siloti 2017-04-15 10:06:50 -07:00 committed by Arvid Norberg
parent 48e61b947a
commit f86e207ba2
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ void natpmp::start()
for (std::vector<mapping_t>::iterator i = m_mappings.begin()
, end(m_mappings.end()); i != end; ++i)
{
if (i->protocol != none
if (i->protocol == none
|| i->action != mapping_t::action_none)
continue;
i->action = mapping_t::action_add;