mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-28 08:44:21 +00:00
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:
1 parent
c86f49ee7f
commit
05c3f9c754
10 files changed
+66
-40
No files matched your search
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user