mirror of https://github.com/oxen-io/lokinet
dont mark inbound sessions as outbound when we get a DNS lookup for it
This commit is contained in:
parent
b70ecade2b
commit
5c3b4090d2
|
@ -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…
Reference in New Issue