mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
set base v6 address to nullopt when explicit empty string is provided
This commit is contained in:
parent
1963bfd48a
commit
73c5291f5c
27
debian/patches/0002-set-base-v6-address-to-nullopt-when-explicit-empty-s.patch
vendored
Normal file
27
debian/patches/0002-set-base-v6-address-to-nullopt-when-explicit-empty-s.patch
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From: Jeff Becker <jeff@i2p.rocks>
|
||||||
|
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(
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -1 +1,2 @@
|
|||||||
0007-Pass-debian-version-as-GIT_VERSION.patch
|
0007-Pass-debian-version-as-GIT_VERSION.patch
|
||||||
|
0002-set-base-v6-address-to-nullopt-when-explicit-empty-s.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user