on apple write packets back to interface when it is for us because that does not have a route spec for the interace ip on loopback as apple finds having sensible defaults bothersome internally

pull/1942/head
Jeff 2 years ago committed by Jason Rhinelander
parent e97752734d
commit 61d7ff3787

@ -25,6 +25,7 @@
#include <llarp/rpc/endpoint_rpc.hpp>
#include <llarp/util/str.hpp>
#include <llarp/dns/srv_data.hpp>
#include <llarp/constants/platform.hpp>
#include <oxenc/bt.h>
@ -1066,6 +1067,15 @@ namespace llarp
src = pkt.srcv6();
}
if constexpr (llarp::platform::is_apple)
{
if (dst == m_OurIP)
{
HandleWriteIPPacket(pkt.ConstBuffer(), src, dst, 0);
return;
}
}
if (m_state->m_ExitEnabled)
{
dst = net::ExpandV4(net::TruncateV6(dst));

Loading…
Cancel
Save