mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-06 10:54:14 +00:00
ignore comments
This commit is contained in:
parent
2173a9f246
commit
e4cd1a465c
@ -365,6 +365,10 @@ namespace client
|
|||||||
std::string name = s.substr(0, pos++);
|
std::string name = s.substr(0, pos++);
|
||||||
std::string addr = s.substr(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> ();
|
auto ident = std::make_shared<i2p::data::IdentityEx> ();
|
||||||
if (!ident->FromBase64(addr)) {
|
if (!ident->FromBase64(addr)) {
|
||||||
LogPrint (eLogError, "Addressbook: malformed address ", addr, " for ", name);
|
LogPrint (eLogError, "Addressbook: malformed address ", addr, " for ", name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user