1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

Respect for netId option in api.cpp #696

This commit is contained in:
Darknet Villain 2017-01-13 14:24:53 -05:00
parent a8bd87938d
commit b0b1c5af71

View File

@ -33,6 +33,10 @@ namespace api
#else #else
i2p::crypto::InitCrypto (true); i2p::crypto::InitCrypto (true);
#endif #endif
int netID; i2p::config::GetOption("netid", netID);
i2p::context.SetNetID (netID);
i2p::context.Init (); i2p::context.Init ();
} }