[HTTP Proxy] skip addresshelper page if destination is not changed (closes )

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2022-10-09 22:13:49 +03:00
parent 3544f77e90
commit 798dd8b27b
No known key found for this signature in database
GPG key ID: 66F6C87B98EBCFE2
3 changed files with 41 additions and 6 deletions
libi2pd_client

View file

@ -397,6 +397,19 @@ namespace client
return nullptr;
}
bool AddressBook::RecordExists (const std::string& address, const std::string& jump)
{
auto addr = FindAddress(address);
if (!addr)
return false;
i2p::data::IdentityEx ident;
if (ident.FromBase64 (jump) && ident.GetIdentHash () == addr->identHash)
return true;
return false;
}
void AddressBook::InsertAddress (const std::string& address, const std::string& jump)
{
auto pos = jump.find(".b32.i2p");