Skip to content
Snippets Groups Projects
Commit fbff8389 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

dhtrunner: build proxy with identity callback, logger

parent 827fdacc
No related branches found
No related tags found
No related merge requests found
...@@ -1136,7 +1136,7 @@ DhtRunner::enableProxy(bool proxify) ...@@ -1136,7 +1136,7 @@ DhtRunner::enableProxy(bool proxify)
if (not config_.push_token.empty()) if (not config_.push_token.empty())
dht_via_proxy->setPushNotificationToken(config_.push_token); dht_via_proxy->setPushNotificationToken(config_.push_token);
#endif #endif
dht_via_proxy_ = std::unique_ptr<SecureDht>(new SecureDht(std::move(dht_via_proxy), config_.dht_config)); dht_via_proxy_ = std::unique_ptr<SecureDht>(new SecureDht(std::move(dht_via_proxy), config_.dht_config, identityAnnouncedCb_, logger_));
// add current listeners // add current listeners
for (auto& l: listeners_) for (auto& l: listeners_)
l.second.tokenProxyDht = dht_via_proxy_->listen(l.second.hash, l.second.gcb, l.second.f, l.second.w); l.second.tokenProxyDht = dht_via_proxy_->listen(l.second.hash, l.second.gcb, l.second.f, l.second.w);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment