mirror of https://github.com/oxen-io/lokinet
add additional fallback case
This commit is contained in:
parent
229e1277fd
commit
4a10868f85
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue