Revert to previous "if hops > 0" logic in Configure()

pull/1246/head
Stephen Shelton 4 years ago committed by Jeff Becker
parent 15918ff1c9
commit 9ba0f117c7
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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));
}

Loading…
Cancel
Save