Browse Source

ignore comments

pull/872/head
orignal 8 years ago
parent
commit
e4cd1a465c
  1. 4
      libi2pd_client/AddressBook.cpp

4
libi2pd_client/AddressBook.cpp

@ -365,6 +365,10 @@ namespace client @@ -365,6 +365,10 @@ namespace client
std::string name = s.substr(0, pos++);
std::string addr = s.substr(pos);
size_t pos = s.find('#');
if (pos != std::string::npos)
std::string addr = addr.substr(pos); // remove comments
auto ident = std::make_shared<i2p::data::IdentityEx> ();
if (!ident->FromBase64(addr)) {
LogPrint (eLogError, "Addressbook: malformed address ", addr, " for ", name);

Loading…
Cancel
Save