add additional fallback case

ubuntu/impish
Jason Rhinelander 2 years ago
parent 9f13f64c2f
commit 9e0f16fa9c
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262

@ -0,0 +1,24 @@
From: Jeff <jeff@lokinet.io>
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
}

@ -1 +1,2 @@
0007-Pass-debian-version-as-GIT_VERSION.patch
0002-add-additional-fallback-case.patch

Loading…
Cancel
Save