mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
* migrate to new settings
This commit is contained in:
parent
209934ad67
commit
2335d3879e
8 changed files with 109 additions and 77 deletions
5
api.cpp
5
api.cpp
|
@ -1,5 +1,6 @@
|
|||
#include <string>
|
||||
#include <map>
|
||||
#include "Config.h"
|
||||
#include "Log.h"
|
||||
#include "NetDb.h"
|
||||
#include "Transports.h"
|
||||
|
@ -18,7 +19,9 @@ namespace api
|
|||
void InitI2P (int argc, char* argv[], const char * appName)
|
||||
{
|
||||
i2p::util::filesystem::SetAppName (appName);
|
||||
i2p::util::config::OptionParser(argc, argv);
|
||||
i2p::config::Init ();
|
||||
i2p::config::ParseCmdline (argc, argv);
|
||||
i2p::config::Finalize ();
|
||||
i2p::crypto::InitCrypto ();
|
||||
i2p::context.Init ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue