Skip to content

Commit ce7cd1f

Browse files
committed
Properly log user agent when patchwork version is invalid
1 parent c3b38f5 commit ce7cd1f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.idea/.idea.Refresh/.idea/AndroidProjectSystem.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Refresh.GameServer/Endpoints/Game/Handshake/AuthenticationEndpoints.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public class AuthenticationEndpoints : EndpointGroup
181181
if (game != TokenGame.LittleBigPlanetPSP && !context.IsPatchworkVersionValid(config.RequiredPatchworkMajorVersion, config.RequiredPatchworkMinorVersion))
182182
{
183183
database.AddLoginFailNotification("The server detected you are not using the latest version of Patchwork. Please update or install it.", user);
184-
context.Logger.LogWarning(BunkumCategory.Authentication, $"{ticket.Username}'s Patchwork version is invalid: {context}");
184+
context.Logger.LogWarning(BunkumCategory.Authentication, $"{ticket.Username}'s Patchwork version is invalid: {context.RequestHeaders["User-Agent"]}");
185185
return null;
186186
}
187187

0 commit comments

Comments
 (0)