Browse Source

find SSU2 address with static key if supports both ipv4 and ipv6

pull/1786/head
orignal 2 years ago
parent
commit
ae73e8a305
  1. 3
      libi2pd/RouterInfo.cpp

3
libi2pd/RouterInfo.cpp

@ -979,7 +979,8 @@ namespace data @@ -979,7 +979,8 @@ namespace data
return GetAddress (
[key, isV6](std::shared_ptr<const RouterInfo::Address> address)->bool
{
return address->IsSSU2 () && !memcmp (address->s, key, 32) && address->IsV6 () == isV6;
return address->IsSSU2 () && !memcmp (address->s, key, 32) &&
((isV6 && address->IsV6 ()) || (!isV6 && address->IsV4 ()));
});
}

Loading…
Cancel
Save