From a3c9cdb1b1871f14cd3f2d3a719ceaee4ef8d3e3 Mon Sep 17 00:00:00 2001 From: Chomp Date: Thu, 20 Feb 2025 15:41:15 +0000 Subject: [PATCH] Fixed error --- Libraries/Core/Servers/HttpServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Core/Servers/HttpServer.cs b/Libraries/Core/Servers/HttpServer.cs index 9147d998..f745bf61 100644 --- a/Libraries/Core/Servers/HttpServer.cs +++ b/Libraries/Core/Servers/HttpServer.cs @@ -96,7 +96,7 @@ public class HttpServer( ? realIp.Value.First() : forwardedFor.HasValue ? forwardedFor.Value.First()!.Split(",")[0].Trim() - : context.Connection.RemoteIpAddress!.ToString().Split(":")[3]; + : context.Connection.RemoteIpAddress!.ToString().Split(":").Last(); if (_httpConfig.LogRequests) {