mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
check if address not found
This commit is contained in:
parent
cee9f1df95
commit
59dd479a6d
1 changed files with 5 additions and 1 deletions
|
@ -636,7 +636,11 @@ namespace client
|
||||||
if (address.length () > 0)
|
if (address.length () > 0)
|
||||||
{
|
{
|
||||||
// TODO: verify from
|
// TODO: verify from
|
||||||
m_Addresses[address] = buf + 8;
|
i2p::data::IdentHash hash(buf + 8);
|
||||||
|
if (!hash.IsZero ())
|
||||||
|
m_Addresses[address] = hash;
|
||||||
|
else
|
||||||
|
LogPrint (eLogInfo, "AddressBook: Lookup response: ", address, " not found");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue