diff --git a/libs/freelan/src/switch.cpp b/libs/freelan/src/switch.cpp index b998e368..964e01a2 100644 --- a/libs/freelan/src/switch.cpp +++ b/libs/freelan/src/switch.cpp @@ -139,16 +139,16 @@ namespace freelan std::cerr << index << "-> " << target << std::endl; #endif - if(index != target) + if(index == target) { - m_ports[target].async_write(data, boost::bind(&results_gatherer_type::gather, rg, target, _1)); - } #if FREELAN_DEBUG + std::cerr << "Index matching target forbidden (" << index << "-> " << target << ")" << std::endl; +#endif + } else { - std::cerr << "Index matching target forbidden (" << index << "-> " << target << ")" << std::endl; + m_ports[target].async_write(data, boost::bind(&results_gatherer_type::gather, rg, target, _1)); } -#endif } }