mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
add --proxyserver option for dhtnode
This commit is contained in:
1 parent
67ba435ba6
commit
38ad5b9ef2
2 files changed
+14
-1
No files matched your search
+4
-1
@@ -29,7 +29,7 @@ extern "C" {
|
||||
using namespace dht;
|
||||
|
||||
void print_usage() {
|
||||
std::cout << "Usage: dhtnode [-v [-l logfile]] [-i] [-d] [-n network_id] [-p local_port] [-b bootstrap_host[:port]]" << std::endl << std::endl;
|
||||
std::cout << "Usage: dhtnode [-v [-l logfile]] [-i] [-d] [-n network_id] [-p local_port] [-b bootstrap_host[:port]] [--proxyserver local_port]" << std::endl << std::endl;
|
||||
std::cout << "dhtnode, a simple OpenDHT command line node runner." << std::endl;
|
||||
std::cout << "Report bugs to: http://opendht.net" << std::endl;
|
||||
}
|
||||
@@ -92,6 +92,9 @@ void cmd_loop(std::shared_ptr<DhtRunner>& dht, dht_params& params)
|
||||
std::map<std::string, indexation::Pht> indexes;
|
||||
#if OPENDHT_PROXY_SERVER
|
||||
std::map<in_port_t, std::unique_ptr<DhtProxyServer>> proxies;
|
||||
if (params.proxyserver != 0) {
|
||||
proxies.emplace(params.proxyserver, new DhtProxyServer(dht, params.proxyserver));
|
||||
}
|
||||
#endif //OPENDHT_PROXY_SERVER
|
||||
|
||||
while (true)
|
||||
|
||||
Reference in new issue
Block a user