mirror of https://github.com/oxen-io/lokinet
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:
parent
7a0d4a905e
commit
2a27698016
|
@ -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…
Reference in New Issue