mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
dhtchat: respect new arguments
This commit is contained in:
1 parent
ed1b0220e5
commit
347f404a92
2 files changed
+31
-13
No files matched your search
+1
-4
@@ -549,10 +549,9 @@ main(int argc, char **argv)
|
||||
config.threaded = true;
|
||||
config.proxy_server = params.proxyclient;
|
||||
config.push_node_id = "dhtnode";
|
||||
config.push_token = params.devicekey;
|
||||
config.peer_discovery = params.peer_discovery;
|
||||
config.peer_publish = params.peer_discovery;
|
||||
if (not params.proxyclient.empty())
|
||||
node->setPushNotificationToken(params.devicekey);
|
||||
|
||||
dht::DhtRunner::Context context {};
|
||||
if (params.log) {
|
||||
@@ -564,8 +563,6 @@ main(int argc, char **argv)
|
||||
context.logger = log::getStdLogger();
|
||||
}
|
||||
node->run(params.port, config, std::move(context));
|
||||
if (context.logger)
|
||||
log::enableLogging(*node);
|
||||
|
||||
if (not params.bootstrap.first.empty()) {
|
||||
std::cout << "Bootstrap: " << params.bootstrap.first << ":" << params.bootstrap.second << std::endl;
|
||||
|
||||
Reference in new issue
Block a user