mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
dht: add public address reporting
This commit is contained in:
1 parent
02d4afa555
commit
873fbd3d8e
4 files changed
+135
-20
No files matched your search
@@ -142,6 +142,12 @@ main(int argc, char **argv)
|
||||
std::cout << "Searches:" << std::endl;
|
||||
std::cout << dht.getSearchesLog() << std::endl;
|
||||
continue;
|
||||
} else if (op == "la") {
|
||||
std::cout << "Reported public addresses:" << std::endl;
|
||||
auto addrs = dht.getPublicAddressStr();
|
||||
for (const auto& addr : addrs)
|
||||
std::cout << addr << std::endl;
|
||||
continue;
|
||||
} else if (op == "log") {
|
||||
do_log = !do_log;
|
||||
if (do_log)
|
||||
|
||||
Reference in new issue
Block a user