This commit is contained in:
Hukuta committed 2026-05-22 03:25:12 +09:00
1 parent e8529ee92a
commit eddb735070
5 files changed
+4 -15

No files matched your search

-13
View File
@@ -146,18 +146,5 @@ namespace CartriX.Api.Services
return null;
}
}
private async Task<string?> GetHostnameFromIpAsync(IPAddress ipAddress)
{
try
{
IPHostEntry entry = Dns.GetHostEntry(ipAddress);
return entry.HostName;
}
catch (Exception ex)
{
Console.WriteLine($"error: {ex.Message}");
return null;
}
}
}
}