From 98e08591d066915c14bdca94ef47cef4978bbc0f Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Tue, 31 May 2022 16:32:00 -0300 Subject: [PATCH] add additional fallback case --- .../0002-add-additional-fallback-case.patch | 24 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 25 insertions(+) create mode 100644 debian/patches/0002-add-additional-fallback-case.patch diff --git a/debian/patches/0002-add-additional-fallback-case.patch b/debian/patches/0002-add-additional-fallback-case.patch new file mode 100644 index 000000000..5e419b46e --- /dev/null +++ b/debian/patches/0002-add-additional-fallback-case.patch @@ -0,0 +1,24 @@ +From: Jeff +Date: Tue, 31 May 2022 15:23:36 -0400 +Subject: add additional fallback case + +--- + llarp/link/server.cpp | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/llarp/link/server.cpp b/llarp/link/server.cpp +index 44ac8b4..528b9d3 100644 +--- a/llarp/link/server.cpp ++++ b/llarp/link/server.cpp +@@ -159,6 +159,11 @@ namespace llarp + // we do not have our claimed ip, nat or something? + m_ourAddr = *maybe; + } ++ else if (auto maybe = net::AllInterfaces(SockAddr{"0.0.0.0"})) ++ { ++ // one last fallback ++ m_ourAddr = *maybe; ++ } + else + return false; // the ultimate failure case + } diff --git a/debian/patches/series b/debian/patches/series index 38a9e7a4f..265b4fbff 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0007-Pass-debian-version-as-GIT_VERSION.patch +0002-add-additional-fallback-case.patch