try bailing when configration failed

pull/703/head
Jeff Becker 5 years ago
parent 4e4c0b85ce
commit 0d0efe7007
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -462,7 +462,8 @@ namespace llarp
bool
Router::Configure(Config *conf)
{
fromConfig(conf);
if(!FromConfig(conf))
return false;
if(!InitOutboundLinks())
return false;
@ -765,7 +766,7 @@ namespace llarp
}
bool
Router::fromConfig(Config *conf)
Router::FromConfig(Config *conf)
{
// Set netid before anything else
if(!conf->router.netId().empty())

@ -566,7 +566,7 @@ namespace llarp
}
bool
fromConfig(Config *conf);
FromConfig(Config *conf);
};
} // namespace llarp

Loading…
Cancel
Save