mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
Merge pull request #777 from l-n-s/fix_api_netid
Respect for netId option in api.cpp #696
This commit is contained in:
commit
90d02234c7
1 changed files with 4 additions and 0 deletions
4
api.cpp
4
api.cpp
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue