Backport dev fix for ipv6 exit routing

This commit is contained in:
Jason Rhinelander 2022-05-18 13:17:10 -03:00
parent 2127afc0f7
commit 90e8b8e964
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
3 changed files with 29 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
lokinet (0.9.8-1~ubuntu2204.3) jammy; urgency=medium
* backport dev fix: use ::/0 to fixing missing ipv6 routing
-- Jason Rhinelander <jason@imaginary.ca> Wed, 18 May 2022 13:17:53 -0300
lokinet (0.9.8-1~ubuntu2204.2) jammy; urgency=medium
* add missing oxenmq headers

22
debian/patches/0004-use-0.patch vendored Normal file
View File

@ -0,0 +1,22 @@
From: majestrate <jeff@oxen.io>
Date: Wed, 18 May 2022 12:16:46 -0400
Subject: use ::/0
makes us map all ranges not just ipv4 when exit mode is on by default.
---
llarp/rpc/rpc_server.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llarp/rpc/rpc_server.cpp b/llarp/rpc/rpc_server.cpp
index 5bb14e8..5545358 100644
--- a/llarp/rpc/rpc_server.cpp
+++ b/llarp/rpc/rpc_server.cpp
@@ -432,7 +432,7 @@ namespace llarp::rpc
const auto range_itr = obj.find("range");
if (range_itr == obj.end())
{
- range.FromString("0.0.0.0/0");
+ range.FromString("::/0");
}
else if (not range.FromString(range_itr->get<std::string>()))
{

View File

@ -1,3 +1,4 @@
0007-Pass-debian-version-as-GIT_VERSION.patch
0002-add-missing-oxenmq-headers.patch
0003-Change-default-DNS-to-127.0.0.1-953.patch
0004-use-0.patch