make default endpoint non reachable by default

pull/1093/head
Jeff Becker 4 years ago
parent 70eb353c42
commit 6c67cc1f01
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -118,6 +118,17 @@ namespace llarp
m_PublishIntroSet = false;
LogInfo(Name(), " setting to be not reachable by default");
}
else if(IsTrueValue(v))
{
m_PublishIntroSet = true;
LogInfo(Name(), " setting to be reachable by default");
}
else
{
LogError(Name(), " config option reachable = '", v,
"' does not make sense");
return false;
}
}
if(k == "isolate-network" && IsTrueValue(v.c_str()))
{

@ -148,6 +148,8 @@ namespace llarp
{
Config::section_values_t configOpts;
configOpts.push_back({"type", DefaultEndpointType()});
// non reachable by default as this is the default endpoint
configOpts.push_back({"reachable", "false"});
{
auto itr = opts.begin();
while(itr != opts.end())

Loading…
Cancel
Save