diff --git a/aspnet-core/modules/common/LINGYUN.Abp.AspNetCore.HttpOverrides/LINGYUN/Abp/AspNetCore/WebClientInfo/RequestForwardedHeaderWebClientInfoProvider.cs b/aspnet-core/modules/common/LINGYUN.Abp.AspNetCore.HttpOverrides/LINGYUN/Abp/AspNetCore/WebClientInfo/RequestForwardedHeaderWebClientInfoProvider.cs index 9c2ae872b..3ef5dc6cf 100644 --- a/aspnet-core/modules/common/LINGYUN.Abp.AspNetCore.HttpOverrides/LINGYUN/Abp/AspNetCore/WebClientInfo/RequestForwardedHeaderWebClientInfoProvider.cs +++ b/aspnet-core/modules/common/LINGYUN.Abp.AspNetCore.HttpOverrides/LINGYUN/Abp/AspNetCore/WebClientInfo/RequestForwardedHeaderWebClientInfoProvider.cs @@ -32,7 +32,7 @@ namespace LINGYUN.Abp.AspNetCore.WebClientInfo if (requestHeaders != null && requestHeaders.TryGetValue(Options.ForwardedForHeaderName, out StringValues headers) == true) { - if (StringValues.IsNullOrEmpty(headers)) + if (!StringValues.IsNullOrEmpty(headers)) { return headers.Last(); }