diff --git a/src/natpmp.cpp b/src/natpmp.cpp index 2a795d3e9..dad1a5934 100644 --- a/src/natpmp.cpp +++ b/src/natpmp.cpp @@ -135,7 +135,7 @@ void natpmp::start() for (std::vector::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;