require at least 2 hops because otherwise stuff wont publish

This commit is contained in:
Jeff Becker 2020-06-02 09:30:21 -04:00
parent d5b4dbe052
commit 749c5a813c
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 2 additions and 2 deletions

View File

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