mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-19 13:51:48 +02: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:
parent
3544f77e90
commit
798dd8b27b
3 changed files with 41 additions and 6 deletions
libi2pd_client
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue