Update fw_dns_plug.cpp

This commit is contained in:
杨威
2020-12-25 15:08:19 +08:00
parent 95bdca7514
commit badd5547da

View File

@@ -243,8 +243,16 @@ static char fw_dns_action(struct streaminfo *a_stream, dns_info_t *dns_info, Maa
return -1;
}
senddir = MESA_dir_reverse(a_stream->routedir);
if(dns_info->hdr_info.qr==0)
{
senddir = MESA_dir_reverse(a_stream->routedir);
}
else
{
senddir = a_stream->routedir;
}
ret=MESA_inject_pkt(a_stream, (const char *)cheat_pkt_payload, payload_len, (const char *)a_packet, senddir);
if(ret<0)
{
MESA_handle_runtime_log(g_fw_dns_plug_info.logger,