mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-12-01 02:05:06 +00:00
Verify source addresses for STUN responses
This commit is contained in:
1 parent
134eee49e0
commit
7bf16de8e2
5 files changed
+58
-12
No files matched your search
+2
-1
@@ -267,7 +267,8 @@ static void AudioReceiveThreadProc(void* context) {
|
||||
}
|
||||
}
|
||||
|
||||
packet->header.size = recvUdpSocket(rtpSocket, &packet->data[0], MAX_PACKET_SIZE, useSelect);
|
||||
packet->header.size = recvUdpSocket(rtpSocket, &packet->data[0], MAX_PACKET_SIZE,
|
||||
useSelect, NULL, NULL);
|
||||
if (packet->header.size < 0) {
|
||||
Limelog("Audio Receive: recvUdpSocket() failed: %d\n", (int)LastSocketError());
|
||||
ListenerCallbacks.connectionTerminated(LastSocketFail());
|
||||
|
||||
Reference in new issue
Block a user