File tree Expand file tree Collapse file tree
Refresh.Interfaces.Game/Endpoints/Handshake Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -178,9 +178,11 @@ public class AuthenticationEndpoints : EndpointGroup
178178 if ( game == TokenGame . LittleBigPlanetVita && platform == TokenPlatform . PS3 ) platform = TokenPlatform . Vita ;
179179 else if ( game == TokenGame . LittleBigPlanetPSP && platform == TokenPlatform . PS3 ) platform = TokenPlatform . PSP ;
180180
181- // Check if client-side security patches are present.
181+ // Check if client-side security patches are present, if required .
182182 // PSP is invulnerable to most exploits as it does not support multiplayer nor scripting.
183- if ( game != TokenGame . LittleBigPlanetPSP && ! context . IsPatchworkVersionValid ( config . RequiredPatchworkMajorVersion , config . RequiredPatchworkMinorVersion ) )
183+ if ( config . EnforcePatchwork &&
184+ game != TokenGame . LittleBigPlanetPSP &&
185+ ! context . IsPatchworkVersionValid ( config . RequiredPatchworkMajorVersion , config . RequiredPatchworkMinorVersion ) )
184186 {
185187 database . AddLoginFailNotification ( "The server detected you are not using the latest version of Patchwork. Please update or install it." , user ) ;
186188 context . Logger . LogWarning ( BunkumCategory . Authentication , $ "{ ticket . Username } 's Patchwork version is invalid: { context . RequestHeaders [ "User-Agent" ] } ") ;
You can’t perform that action at this time.
0 commit comments