diff --git a/llarp/handlers/tun.cpp b/llarp/handlers/tun.cpp index 9ea113bd3..3806c6da1 100644 --- a/llarp/handlers/tun.cpp +++ b/llarp/handlers/tun.cpp @@ -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())) { diff --git a/llarp/service/context.cpp b/llarp/service/context.cpp index 63792d12e..76f051e3a 100644 --- a/llarp/service/context.cpp +++ b/llarp/service/context.cpp @@ -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())