Skip to content

Commit

Permalink
fixed build for boost below 1.49
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Feb 4, 2015
1 parent b923b1e commit bd035e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Transports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,13 @@ namespace transport
auto address = peer.router->GetNTCPAddress (!context.SupportsV6 ());
if (address)
{
#if BOOST_VERSION >= 104900
if (!address->host.is_unspecified ()) // we have address now
#else
boost::system::error_code ecode;
address->host.to_string (ecode);
if (!ecode)
#endif
{
if (!peer.router->UsesIntroducer () && !peer.router->IsUnreachable ())
{
Expand Down

0 comments on commit bd035e1

Please sign in to comment.