|
|
@ -28,11 +28,8 @@ namespace api |
|
|
|
i2p::fs::DetectDataDir(datadir, false); |
|
|
|
i2p::fs::DetectDataDir(datadir, false); |
|
|
|
i2p::fs::Init(); |
|
|
|
i2p::fs::Init(); |
|
|
|
|
|
|
|
|
|
|
|
#if defined(__x86_64__) |
|
|
|
bool precomputation; i2p::config::GetOption("precomputation.elgamal", precomputation); |
|
|
|
i2p::crypto::InitCrypto (false); |
|
|
|
i2p::crypto::InitCrypto (precomputation); |
|
|
|
#else |
|
|
|
|
|
|
|
i2p::crypto::InitCrypto (true); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int netID; i2p::config::GetOption("netid", netID); |
|
|
|
int netID; i2p::config::GetOption("netid", netID); |
|
|
|
i2p::context.SetNetID (netID); |
|
|
|
i2p::context.SetNetID (netID); |
|
|
|