Skip to content
Snippets Groups Projects
Commit 27bfd547 authored by Simon Désaulniers's avatar Simon Désaulniers Committed by Adrien Béraud
Browse files

c/opendht: dht_runner_run_config, consider server_ca

parent 5237f0a3
Branches
Tags
No related merge requests found
...@@ -330,7 +330,8 @@ int dht_runner_run_config(dht_runner* r, in_port_t port, const dht_runner_config ...@@ -330,7 +330,8 @@ int dht_runner_run_config(dht_runner* r, in_port_t port, const dht_runner_config
config.dht_config.node_config.node_id = *reinterpret_cast<const dht::InfoHash*>(&conf->dht_config.node_config.node_id); config.dht_config.node_config.node_id = *reinterpret_cast<const dht::InfoHash*>(&conf->dht_config.node_config.node_id);
config.dht_config.node_config.network = conf->dht_config.node_config.network; config.dht_config.node_config.network = conf->dht_config.node_config.network;
config.dht_config.node_config.persist_path = conf->dht_config.node_config.persist_path config.dht_config.node_config.persist_path = conf->dht_config.node_config.persist_path
? std::string(conf->dht_config.node_config.persist_path) : std::string{}; ? std::string(conf->dht_config.node_config.persist_path)
: std::string{};
if (conf->dht_config.id.privatekey) if (conf->dht_config.id.privatekey)
config.dht_config.id.first = *reinterpret_cast<const PrivkeySp*>(conf->dht_config.id.privatekey); config.dht_config.id.first = *reinterpret_cast<const PrivkeySp*>(conf->dht_config.id.privatekey);
...@@ -347,6 +348,7 @@ int dht_runner_run_config(dht_runner* r, in_port_t port, const dht_runner_config ...@@ -347,6 +348,7 @@ int dht_runner_run_config(dht_runner* r, in_port_t port, const dht_runner_config
config.proxy_user_agent = conf->proxy_user_agent ? std::string(conf->proxy_user_agent) : std::string{}; config.proxy_user_agent = conf->proxy_user_agent ? std::string(conf->proxy_user_agent) : std::string{};
config.peer_discovery = conf->peer_discovery; config.peer_discovery = conf->peer_discovery;
config.peer_publish = conf->peer_publish; config.peer_publish = conf->peer_publish;
config.server_ca = *reinterpret_cast<const CertSp*>(conf->server_ca);
dht::DhtRunner::Context context; dht::DhtRunner::Context context;
if (conf->log) { if (conf->log) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment