mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
require at least 2 hops because otherwise stuff wont publish
This commit is contained in:
parent
d5b4dbe052
commit
749c5a813c
@ -175,8 +175,8 @@ namespace llarp
|
||||
});
|
||||
|
||||
conf.defineOption<int>("network", "paths", false, PathsDefault, [this](int arg) {
|
||||
if (arg < 1 or arg > 8)
|
||||
throw std::invalid_argument("[endpoint]:paths must be >= 1 and <= 8");
|
||||
if (arg < 2 or arg > 8)
|
||||
throw std::invalid_argument("[endpoint]:paths must be >= 2 and <= 8");
|
||||
m_Paths = arg;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user