mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
tools/dhtscanner: use client mode
This commit is contained in:
1 parent
7995c2283d
commit
2e38ec093d
1 file changed
+3
-2
@@ -101,8 +101,9 @@ main(int argc, char **argv)
|
||||
|
||||
DhtRunner dht;
|
||||
try {
|
||||
auto dhtConf = getDhtConfig(params);
|
||||
dht.run(params.port, dhtConf.first, std::move(dhtConf.second));
|
||||
auto [config, context] = getDhtConfig(params);
|
||||
config.dht_config.node_config.client_mode = true;
|
||||
dht.run(params.port, config, std::move(context));
|
||||
|
||||
if (not params.bootstrap.empty())
|
||||
dht.bootstrap(params.bootstrap);
|
||||
|
||||
Reference in new issue
Block a user