diff --git a/debian/patches/0002-set-base-v6-address-to-nullopt-when-explicit-empty-s.patch b/debian/patches/0002-set-base-v6-address-to-nullopt-when-explicit-empty-s.patch new file mode 100644 index 000000000..4dccfeaa6 --- /dev/null +++ b/debian/patches/0002-set-base-v6-address-to-nullopt-when-explicit-empty-s.patch @@ -0,0 +1,27 @@ +From: Jeff Becker +Date: Wed, 6 Oct 2021 16:21:42 -0400 +Subject: 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 4e1b4c8..52d0185 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( diff --git a/debian/patches/series b/debian/patches/series index 38a9e7a4f..24dd9f766 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0007-Pass-debian-version-as-GIT_VERSION.patch +0002-set-base-v6-address-to-nullopt-when-explicit-empty-s.patch