Fix backwards from/to in PacketSource_Wrapper

This resulted in DNS responses in Windows having reversed direction when
reinjected, and thus not arriving as expected.
This commit is contained in:
Jason Rhinelander 2022-09-13 12:07:07 -03:00
parent 7a0d4a905e
commit 2a27698016
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ namespace llarp::dns
void
SendTo(const SockAddr& to, const SockAddr& from, OwnedBuffer buf) const override
{
m_WritePacket(net::IPPacket::make_udp(to, from, std::move(buf)));
m_WritePacket(net::IPPacket::make_udp(from, to, std::move(buf)));
}
/// stop reading packets and end operation