Update a stored e metodi x evitare race conditions su scrittura remoteRebootLog

This commit is contained in:
Samuele Locatelli
2026-04-28 08:23:27 +02:00
parent d9ede3aae3
commit d2ec5b15d4
6 changed files with 34 additions and 18 deletions
-1
View File
@@ -1156,7 +1156,6 @@ namespace MP.IOC.Controllers
// recupero IP del client remoto, se vuoto IOC
string agent = Request.Headers["User-Agent"].ToString() ?? "IOC";
agent = string.IsNullOrWhiteSpace(agent) ? "IOC" : agent;
//var ipv4 = HttpContext.Connection.RemoteIpAddress?.ToString();
var ipv4 = HttpContext.Connection.RemoteIpAddress?.MapToIPv4().ToString();
// chiamo registrazione reboot