mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
make default endpoint non reachable by default
This commit is contained in:
parent
70eb353c42
commit
6c67cc1f01
|
@ -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…
Reference in a new issue