Browse Source

Truncate the ip string from the beginning.

pull/20819/head
maliming 1 year ago
parent
commit
05fd7beacd
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 4
      modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentitySession.cs

4
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentitySession.cs

@ -87,12 +87,12 @@ public class IdentitySession : BasicAggregateRoot<Guid>, IMultiTenant
while (serialized.Length > IdentitySessionConsts.MaxIpAddressesLength)
{
var lastCommaIndex = serialized.LastIndexOf(',');
var lastCommaIndex = serialized.IndexOf(',');
if (lastCommaIndex < 0)
{
return serialized;
}
serialized = serialized.Substring(0, lastCommaIndex);
serialized = serialized.Substring(lastCommaIndex + 1);
}
return serialized;

Loading…
Cancel
Save