Merge pull request #777 from l-n-s/fix_api_netid

Respect for netId option in api.cpp #696
This commit is contained in:
orignal
2017-01-13 14:30:37 -05:00
committed by GitHub

View File

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