mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
rework of storing certificates path (#1642)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
d3a49e513c
commit
e8ad7b4f79
5 changed files with 45 additions and 15 deletions
|
@ -497,13 +497,7 @@ namespace data
|
|||
|
||||
void Reseeder::LoadCertificates ()
|
||||
{
|
||||
std::string certDir;
|
||||
std::string certsdir; i2p::config::GetOption("certsdir", certsdir);
|
||||
if (!i2p::config::IsDefault("certsdir"))
|
||||
certDir = certsdir + i2p::fs::dirSep + "reseed";
|
||||
|
||||
if (certDir.empty() || !i2p::fs::Exists(certDir))
|
||||
certDir = i2p::fs::DataDirPath("certificates", "reseed");
|
||||
std::string certDir = i2p::fs::GetCertsDir() + i2p::fs::dirSep + "reseed";
|
||||
|
||||
std::vector<std::string> files;
|
||||
int numCertificates = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue