Use the address book for conversion into .b32.i2p

This commit is contained in:
Francisco Blas (klondike) Izquierdo Riera 2015-01-05 12:36:09 +01:00
parent 8812a45607
commit cb94d43092
5 changed files with 11 additions and 9 deletions

View file

@ -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 ();