handle ipv6 exit traffic

pull/686/head
Jeff Becker 5 years ago
parent 0cf09d6435
commit a780789b2c
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -92,7 +92,6 @@ namespace llarp
ExitEndpoint::HandleHookedDNSMessage(
dns::Message &&msg, std::function< void(dns::Message) > reply)
{
if(msg.questions[0].qtype == dns::qTypePTR)
{
huint32_t ip;
@ -551,7 +550,7 @@ namespace llarp
}
else if(m_IfAddr.FromString(host_str))
{
m_UseV6 = true;
m_UseV6 = true;
m_OurRange.netmask_bits = netmask_ipv6_bits(m_Tun.netmask);
}
else

@ -718,6 +718,12 @@ namespace llarp
m_Exit->QueueUpstreamTraffic(std::move(pkt),
llarp::routing::ExitPadSize);
}
else if(m_Exit && pkt.IsV6())
{
pkt.UpdateV6Address({0}, pkt.dstv6());
m_Exit->QueueUpstreamTraffic(std::move(pkt),
llarp::routing::ExitPadSize);
}
else
{
llarp::LogWarn(Name(), " has no endpoint for ", dst);

Loading…
Cancel
Save