diff --git a/OliverBooth/Services/SessionService.cs b/OliverBooth/Services/SessionService.cs index 8ee148d..0d174ed 100644 --- a/OliverBooth/Services/SessionService.cs +++ b/OliverBooth/Services/SessionService.cs @@ -161,13 +161,19 @@ internal sealed class SessionService : BackgroundService, ISessionService Span sessionAddressBytes = stackalloc byte[16]; if (!remoteIpAddress.TryWriteBytes(remoteAddressBytes, out _) || !session.IpAddress.TryWriteBytes(sessionAddressBytes, out _)) + { return false; + } if (!remoteAddressBytes.SequenceEqual(sessionAddressBytes)) + { return false; + } if (_userService.TryGetUser(session.UserId, out _)) + { return false; + } return true; }