mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
[HTTP Proxy] skip addresshelper page if destination is not changed (closes #1789)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user