mirror of https://github.com/oxen-io/lokinet
add additional fallback case
parent
1815544dfb
commit
c6a1a742ae
@ -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…
Reference in New Issue