[Redirector] Use this_thread::sleep_for

This commit is contained in:
Connection Refused
2021-10-04 15:49:11 +08:00
parent 448db04103
commit b12e806fbc

View File

@@ -78,7 +78,7 @@ void ipSend(const char* buffer, int length, PNF_IP_PACKET_OPTIONS options)
data[options->ipHeaderSize + 2] = icmpsum & 0xff;
data[options->ipHeaderSize + 3] = (icmpsum >> 8);
Sleep(icmping);
this_thread::sleep_for(chrono::microseconds(icmping));
printf("[Redirector][IPEventHandler][ipSend] Fake ICMP response for %d.%d.%d.%d\n", data[12], data[13], data[14], data[15]);
nf_ipPostReceive((PCHAR)data, length, options);