From 9a706fd78cded8a67459589d667d228c5d8dc32c Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 9 Apr 2021 07:45:17 -0500 Subject: [PATCH] Temporarily switch to control protocol 9 on GFE 3.22 --- src/SdpGenerator.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/SdpGenerator.c b/src/SdpGenerator.c index 3719845..8175efb 100644 --- a/src/SdpGenerator.c +++ b/src/SdpGenerator.c @@ -142,9 +142,19 @@ static int addGen4Options(PSDP_OPTION* head, char* addrStr) { static int addGen5Options(PSDP_OPTION* head) { int err = 0; - // We want to use the new ENet connections for control and input - err |= addAttributeString(head, "x-nv-general.useReliableUdp", "1"); - err |= addAttributeString(head, "x-nv-ri.useControlChannel", "1"); + if (APP_VERSION_AT_LEAST(7, 1, 431)) { + // 0x20 enables audio encryption (which we don't support yet) + // 0x80 enables remote input encryption (which we do want) + err |= addAttributeString(head, "x-nv-general.featureFlags", "135"); + + // Ask for the unencrypted control protocol for now + err |= addAttributeString(head, "x-nv-general.useReliableUdp", "9"); + } + else { + // We want to use the new ENet connections for control and input + err |= addAttributeString(head, "x-nv-general.useReliableUdp", "1"); + err |= addAttributeString(head, "x-nv-ri.useControlChannel", "1"); + } // Disable dynamic resolution switching err |= addAttributeString(head, "x-nv-vqos[0].drc.enable", "0");