Bind our UDP sockets to the same local address used by RTSP handshake

This means we can ensure a consistent local address for our outgoing PING
traffic to keep the UDP flows alive without having to call connect() which breaks
with multi-homed hosts on GFE and Sunshine v0.20 and earlier.
This commit is contained in:
Cameron Gutman committed 2023-10-26 01:09:26 -05:00
1 parent c86f49ee7f
commit 05c3f9c754
10 files changed
+66 -40

No files matched your search

+1 -1
View File
@@ -699,7 +699,7 @@ int startInputStream(void) {
// After Gen 5, we send input on the control stream
if (AppVersionQuad[0] < 5) {
inputSock = connectTcpSocket(&RemoteAddr, RemoteAddrLen,
inputSock = connectTcpSocket(&RemoteAddr, AddrLen,
35043, INPUT_STREAM_TIMEOUT_SEC);
if (inputSock == INVALID_SOCKET) {
return LastSocketFail();