v6 ignored

This commit is contained in:
Daniel Larimer 2013-11-08 19:34:54 -05:00
parent cf37cd776b
commit dcce9b2726

View file

@ -1,5 +1,6 @@
#include <fc/asio.hpp>
#include <fc/network/ip.hpp>
#include <fc/log/logger.hpp>
namespace fc
{
@ -9,7 +10,13 @@ namespace fc
std::vector<fc::ip::endpoint> eps;
eps.reserve(ep.size());
for( auto itr = ep.begin(); itr != ep.end(); ++itr )
eps.push_back( fc::ip::endpoint(itr->address().to_v4().to_ulong(), itr->port()) );
{
if( itr->address().is_v4() )
{
eps.push_back( fc::ip::endpoint(itr->address().to_v4().to_ulong(), itr->port()) );
}
// TODO: add support for v6
}
return eps;
}
}