mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-08 22:57:52 +00:00
fixed build for boost below 1.49
This commit is contained in:
parent
b923b1e31d
commit
bd035e1c3d
@ -255,7 +255,13 @@ namespace transport
|
|||||||
auto address = peer.router->GetNTCPAddress (!context.SupportsV6 ());
|
auto address = peer.router->GetNTCPAddress (!context.SupportsV6 ());
|
||||||
if (address)
|
if (address)
|
||||||
{
|
{
|
||||||
|
#if BOOST_VERSION >= 104900
|
||||||
if (!address->host.is_unspecified ()) // we have address now
|
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 ())
|
if (!peer.router->UsesIntroducer () && !peer.router->IsUnreachable ())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user