diff --git a/EonaCat.Logger/EonaCat.Logger.csproj b/EonaCat.Logger/EonaCat.Logger.csproj
index b25bbd8..333e848 100644
--- a/EonaCat.Logger/EonaCat.Logger.csproj
+++ b/EonaCat.Logger/EonaCat.Logger.csproj
@@ -3,7 +3,7 @@
.netstandard2.1; net6.0; net7.0; net8.0; net4.8;
icon.ico
latest
- 1.2.5
+ 1.2.6
EonaCat (Jeroen Saey)
true
EonaCat (Jeroen Saey)
@@ -24,7 +24,7 @@
- 1.2.5+{chash:10}.{c:ymd}
+ 1.2.6+{chash:10}.{c:ymd}
true
true
v[0-9]*
diff --git a/EonaCat.Logger/Managers/LogHelper.cs b/EonaCat.Logger/Managers/LogHelper.cs
index 50a209b..9da5bb0 100644
--- a/EonaCat.Logger/Managers/LogHelper.cs
+++ b/EonaCat.Logger/Managers/LogHelper.cs
@@ -208,8 +208,7 @@ internal static class LogHelper
};
var messageBytes = Encoding.UTF8.GetBytes(JsonHelper.ToJson(gelfMessage));
- await grayLogServer.Udp.SendAsync(messageBytes, messageBytes.Length,
- new IPEndPoint(IPAddress.Parse(grayLogServer.Hostname), grayLogServer.Port));
+ await grayLogServer.Udp.SendAsync(messageBytes, messageBytes.Length);
}
catch (Exception exception)
{
@@ -247,8 +246,7 @@ internal static class LogHelper
}
var data = Encoding.UTF8.GetBytes(message);
- await server.Udp.SendAsync(data, data.Length,
- new IPEndPoint(IPAddress.Parse(server.Hostname), server.Port));
+ await server.Udp.SendAsync(data, data.Length);
}
catch (Exception exception)
{