mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 12:24:19 +00:00
recongnize v4 and v6 SSU addresses without host
This commit is contained in:
parent
43033695f6
commit
bea384abea
@ -1017,7 +1017,7 @@ namespace data
|
|||||||
return GetAddress (
|
return GetAddress (
|
||||||
[v4only](std::shared_ptr<const RouterInfo::Address> address)->bool
|
[v4only](std::shared_ptr<const RouterInfo::Address> address)->bool
|
||||||
{
|
{
|
||||||
return (address->transportStyle == eTransportSSU) && (!v4only || address->host.is_v4 ());
|
return (address->transportStyle == eTransportSSU) && (!v4only || address->IsV4 ());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1026,7 +1026,7 @@ namespace data
|
|||||||
return GetAddress (
|
return GetAddress (
|
||||||
[](std::shared_ptr<const RouterInfo::Address> address)->bool
|
[](std::shared_ptr<const RouterInfo::Address> address)->bool
|
||||||
{
|
{
|
||||||
return (address->transportStyle == eTransportSSU) && address->host.is_v6 ();
|
return (address->transportStyle == eTransportSSU) && address->IsV6();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user