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 bool
Endpoint::Configure(const NetworkConfig& conf, const DnsConfig& dnsConf) Endpoint::Configure(const NetworkConfig& conf, const DnsConfig& dnsConf)
{ {
numPaths = conf.m_paths; if (conf.m_paths > 0)
numHops = conf.m_hops; numPaths = conf.m_paths;
if (conf.m_hops)
numHops = conf.m_hops;
return m_state->Configure(std::move(conf)); return m_state->Configure(std::move(conf));
} }

Loading…
Cancel
Save