From 404f21ea764ca290fc4c64de403eaf3db926027b Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 28 Nov 2014 16:46:26 -0500 Subject: [PATCH] fixed API build error --- api/api.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }