fix(SWT): Improved logging in ClientHandshake

- Added hint to check Server Roles for handshake key mismatches
This commit is contained in:
MrGadget 2024-02-08 10:32:54 -05:00
parent 9e4b4e2747
commit 0821e56105

View File

@ -72,7 +72,10 @@ public bool TryHandshake(Connection conn, Uri uri)
if (responseKey != expectedResponse) if (responseKey != expectedResponse)
{ {
Log.Error($"[SWT-ClientHandshake]: Response key incorrect\nResponse:{responseKey}\nExpected:{expectedResponse}"); Log.Error($"[SWT-ClientHandshake]: Response key incorrect\n" +
$"Expected:{expectedResponse}\n" +
$"Response:{responseKey}\n" +
$"This can happen if Websocket Protocol is not installed in Windows Server Roles.");
return false; return false;
} }