mirror of https://github.com/oxen-io/lokinet
set base v6 address to nullopt when explicit empty string is provided
This commit is contained in:
parent
24681fd35d
commit
5e9f9686e7
|
@ -569,7 +569,13 @@ namespace llarp
|
||||||
IP6RangeDefault,
|
IP6RangeDefault,
|
||||||
[this](std::string arg) {
|
[this](std::string arg) {
|
||||||
if (arg.empty())
|
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;
|
return;
|
||||||
|
}
|
||||||
m_baseV6Address = huint128_t{};
|
m_baseV6Address = huint128_t{};
|
||||||
if (not m_baseV6Address->FromString(arg))
|
if (not m_baseV6Address->FromString(arg))
|
||||||
throw std::invalid_argument(
|
throw std::invalid_argument(
|
||||||
|
|
Loading…
Reference in New Issue