v6 ignored
This commit is contained in:
parent
cf37cd776b
commit
dcce9b2726
1 changed files with 8 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
#include <fc/asio.hpp>
|
#include <fc/asio.hpp>
|
||||||
#include <fc/network/ip.hpp>
|
#include <fc/network/ip.hpp>
|
||||||
|
#include <fc/log/logger.hpp>
|
||||||
|
|
||||||
namespace fc
|
namespace fc
|
||||||
{
|
{
|
||||||
|
|
@ -9,7 +10,13 @@ namespace fc
|
||||||
std::vector<fc::ip::endpoint> eps;
|
std::vector<fc::ip::endpoint> eps;
|
||||||
eps.reserve(ep.size());
|
eps.reserve(ep.size());
|
||||||
for( auto itr = ep.begin(); itr != ep.end(); ++itr )
|
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;
|
return eps;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue