mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
dhtnode: use generated identity only if specified
This commit is contained in:
1 parent
86429aa360
commit
023b4aff61
1 file changed
+2
-2
+2
-2
@@ -227,7 +227,7 @@ void cmd_loop(std::shared_ptr<DhtRunner>& node, dht_params& params
|
||||
unsigned int port = std::stoi(idstr);
|
||||
proxies.emplace(port, std::unique_ptr<DhtProxyServer>(
|
||||
new DhtProxyServer(
|
||||
std::make_shared<dht::crypto::Identity>(params.id),
|
||||
params.generate_identity ? std::make_shared<dht::crypto::Identity>(params.id) : nullptr,
|
||||
node, port
|
||||
#ifdef OPENDHT_PUSH_NOTIFICATIONS
|
||||
,pushServer
|
||||
@@ -562,7 +562,7 @@ main(int argc, char **argv)
|
||||
#ifdef OPENDHT_PROXY_SERVER
|
||||
proxies.emplace(params.proxyserver, std::unique_ptr<DhtProxyServer>(
|
||||
new DhtProxyServer(
|
||||
std::make_shared<dht::crypto::Identity>(params.id),
|
||||
params.generate_identity ? std::make_shared<dht::crypto::Identity>(params.id) : nullptr,
|
||||
node, params.proxyserver, params.pushserver, context.logger)));
|
||||
#else
|
||||
std::cerr << "DHT proxy server requested but OpenDHT built without proxy server support." << std::endl;
|
||||
|
||||
Reference in new issue
Block a user