dont mark inbound sessions as outbound when we get a DNS lookup for it

pull/1669/head
Jeff Becker 3 years ago
parent b70ecade2b
commit 5c3b4090d2
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -397,6 +397,13 @@ namespace llarp
service::Address addr, auto msg, bool isV6) -> bool {
using service::Address;
using service::OutboundContext;
if(HasInboundConvo(addr))
{
// if we have an inbound convo to this address don't mark as outbound so we don't have a state race
// this codepath is hit when an application verifies that reverse and forward dns records match for an inbound session
SendDNSReply(addr, this, msg, reply, isV6);
return true;
}
MarkAddressOutbound(addr);
return EnsurePathToService(
addr,
@ -424,6 +431,7 @@ namespace llarp
service::Address addr, auto msg) -> bool {
using service::Address;
using service::OutboundContext;
// TODO: how do we handle SRV record lookups for inbound sessions?
MarkAddressOutbound(addr);
return EnsurePathToService(
addr,

Loading…
Cancel
Save