mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Use the address book for conversion into .b32.i2p
This commit is contained in:
parent
8812a45607
commit
cb94d43092
5 changed files with 11 additions and 9 deletions
|
@ -54,7 +54,9 @@ namespace client
|
|||
void StopSubscriptions ();
|
||||
void LoadHostsFromStream (std::istream& f);
|
||||
void DownloadComplete (bool success);
|
||||
|
||||
//This method returns the ".b32.i2p" address
|
||||
std::string ToAddress(const i2p::data::IdentHash& ident) { return ident.ToBase32().append(".b32.i2p"); }
|
||||
std::string ToAddress(const i2p::data::IdentityEx& ident) { return ToAddress(ident.GetIdentHash ()); }
|
||||
private:
|
||||
|
||||
AddressBookStorage * CreateStorage ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue