add primordial goo tier "hidden mode" (aka toy feature needs more work doesn't do it correctly all the way)

This commit is contained in:
Jeff Becker 2016-06-18 11:10:58 -04:00
parent 004a93a841
commit 93deb37c94
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
5 changed files with 27 additions and 4 deletions

View file

@ -204,6 +204,12 @@ namespace i2p
i2p::transport::transports.RestrictRoutes({fam});
} else
LogPrint(eLogError, "Daemon: no family specified for restricted routes");
}
bool hidden; i2p::config::GetOption("trust.hidden", hidden);
if (hidden)
{
LogPrint(eLogInfo, "Daemon: using hidden mode");
i2p::data::netdb.SetHidden(true);
}
return true;
}