Browse Source
Truncate the ip string from the beginning.
pull/20819/head
maliming
1 year ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
2 additions and
2 deletions
-
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; |
|
|
|
|