[Redirector] Fix missing declaration

This commit is contained in:
Connection Refused
2021-09-29 15:56:43 +08:00
parent 3c84491e24
commit 619a85cc40
2 changed files with 5 additions and 2 deletions

View File

@@ -299,7 +299,7 @@ void udpSend(ENDPOINT_ID id, const unsigned char* target, const char* buffer, in
return;
}
PNF_UDP_OPTIONS data = new NF_UDP_OPTIONS();
auto data = new NF_UDP_OPTIONS();
memcpy(data, options, sizeof(NF_UDP_OPTIONS));
thread(udpBeginReceive, id, conn, data).detach();
@@ -350,7 +350,6 @@ void udpBeginReceive(ENDPOINT_ID id, SocksHelper::PUDP conn, PNF_UDP_OPTIONS dat
while (conn->udpSocket != INVALID_SOCKET)
{
SOCKADDR_IN6 target;
int targetLength = sizeof(SOCKADDR_IN6);
int length = conn->Read((PSOCKADDR)&target, buffer, 1458);
if (length == 0 || length == SOCKET_ERROR)