feat: Adds ping listener on port 12000 for server list (#1485)

This commit is contained in:
Kamron Batman 2023-09-03 09:29:27 -07:00 • committed by GitHub
parent 15227a53ec
commit 60a6796903
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 186 additions and 6 deletions

View file

@ -181,9 +181,9 @@ namespace Server.Misc
var ipAddress = hc.GetStringAsync(_ipifyUrl).Result;
return IPAddress.Parse(ipAddress);
}
catch (Exception e)
catch
{
logger.Error(e, "Failed to get public IP address.");
// ignored
}
}