mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-29 05:28:54 +00:00
replace Host to .b32.i2p address
This commit is contained in:
@@ -357,6 +357,22 @@ namespace client
|
||||
identHash = hash;
|
||||
}
|
||||
|
||||
std::string Address::ToBase32 () const
|
||||
{
|
||||
switch (addressType)
|
||||
{
|
||||
case eAddressIndentHash:
|
||||
return identHash.ToBase32 ();
|
||||
break;
|
||||
case eAddressBlindedPublicKey:
|
||||
if (blindedPublicKey)
|
||||
return blindedPublicKey->ToB33 ();
|
||||
break;
|
||||
default: ;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
AddressBook::AddressBook (): m_Storage(nullptr), m_IsLoaded (false),
|
||||
m_NumRetries (0), m_DefaultSubscription (nullptr), m_SubscriptionsUpdateTimer (nullptr),
|
||||
m_IsEnabled (true)
|
||||
|
||||
Reference in New Issue
Block a user