From 5e9f9686e7d459d75948719cdc3125dfce67d37f Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Wed, 6 Oct 2021 16:21:42 -0400 Subject: [PATCH] set base v6 address to nullopt when explicit empty string is provided --- llarp/config/config.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llarp/config/config.cpp b/llarp/config/config.cpp index 66dabf4f8..3a2719343 100644 --- a/llarp/config/config.cpp +++ b/llarp/config/config.cpp @@ -569,7 +569,13 @@ namespace llarp IP6RangeDefault, [this](std::string arg) { if (arg.empty()) + { + LogError( + "!!! Disabling ipv6 tunneling when you have ipv6 routes WILL lead to " + "de-anonymization as lokinet will no longer carry your ipv6 traffic !!!"); + m_baseV6Address = std::nullopt; return; + } m_baseV6Address = huint128_t{}; if (not m_baseV6Address->FromString(arg)) throw std::invalid_argument(