From 9ba0f117c7f2b921c9a5cb6626ea4f2c6bc35d1a Mon Sep 17 00:00:00 2001 From: Stephen Shelton Date: Fri, 1 May 2020 11:03:47 -0600 Subject: [PATCH] Revert to previous "if hops > 0" logic in Configure() --- llarp/service/endpoint.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/llarp/service/endpoint.cpp b/llarp/service/endpoint.cpp index dc1d01758..84dc1c5fa 100644 --- a/llarp/service/endpoint.cpp +++ b/llarp/service/endpoint.cpp @@ -45,8 +45,12 @@ namespace llarp bool Endpoint::Configure(const NetworkConfig& conf, const DnsConfig& dnsConf) { - numPaths = conf.m_paths; - numHops = conf.m_hops; + if (conf.m_paths > 0) + numPaths = conf.m_paths; + + if (conf.m_hops) + numHops = conf.m_hops; + return m_state->Configure(std::move(conf)); }