diff --git a/api/api.cpp b/api/api.cpp index 82611c41..c172227e 100644 --- a/api/api.cpp +++ b/api/api.cpp @@ -53,7 +53,8 @@ namespace api i2p::client::ClientDestination * CreateLocalDestination (bool isPublic, i2p::data::SigningKeyType sigType) { - auto localDestination = new i2p::client::ClientDestination (isPublic, sigType); + i2p::data::PrivateKeys keys = i2p::data::PrivateKeys::CreateRandomKeys (sigType); + auto localDestination = new i2p::client::ClientDestination (keys, isPublic); localDestination->Start (); return localDestination; }