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.
pull/1969/head
Jason Rhinelander 2 years ago
parent 7a0d4a905e
commit 2a27698016
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262

@ -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

Loading…
Cancel
Save