mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
dhtproxy: fix restinio start w/o dhtlogger
This commit is contained in:
1 parent
330ad8ed12
commit
2e7767d192
4 files changed
+21
-14
No files matched your search
+3
-1
@@ -537,6 +537,8 @@ main(int argc, char **argv)
|
||||
context.logger = log::getFileLogger(params.logfile);
|
||||
else
|
||||
context.logger = log::getStdLogger();
|
||||
} else {
|
||||
context.logger = nullptr;
|
||||
}
|
||||
|
||||
node->run(params.port, config, std::move(context));
|
||||
@@ -551,7 +553,7 @@ main(int argc, char **argv)
|
||||
#endif
|
||||
if (params.proxyserver != 0) {
|
||||
#ifdef OPENDHT_PROXY_SERVER
|
||||
proxies.emplace(params.proxyserver, std::unique_ptr<DhtProxyServer>(new DhtProxyServer(node, params.proxyserver, params.pushserver, *context.logger)));
|
||||
proxies.emplace(params.proxyserver, std::unique_ptr<DhtProxyServer>(new DhtProxyServer(node, params.proxyserver, params.pushserver, context.logger)));
|
||||
#else
|
||||
std::cerr << "DHT proxy server requested but OpenDHT built without proxy server support." << std::endl;
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
Reference in new issue
Block a user