From e5f4fd9d6200c91c96daf400e6549ecc963302d2 Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner Date: Thu, 11 Apr 2024 13:07:27 +0200 Subject: [PATCH] Added auth header for console streaming --- Moonlight/Features/Servers/Helpers/ServerConsole.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Moonlight/Features/Servers/Helpers/ServerConsole.cs b/Moonlight/Features/Servers/Helpers/ServerConsole.cs index a5a55ee7..b1b9ec7a 100644 --- a/Moonlight/Features/Servers/Helpers/ServerConsole.cs +++ b/Moonlight/Features/Servers/Helpers/ServerConsole.cs @@ -38,6 +38,9 @@ public class ServerConsole public async Task Connect() { WebSocket = new(); + + // Set auth header + WebSocket.Options.SetRequestHeader("Authorization", Server.Node.Token); string wsUrl;