tools/dhtscanner: use client mode

This commit is contained in:
Adrien Béraud committed 2025-06-14 14:03:21 -04:00
1 parent 7995c2283d
commit 2e38ec093d
1 file changed
+3 -2
+3 -2
View File
@@ -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);