This commit is contained in:
Xenyfye 2022-05-29 20:03:20 -06:00 committed by GitHub
parent 70c70d0038
commit 8bff50efc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ public class AdminsEndpoint extends AbstractServlet
public String getAdmins(HttpServletRequest request, HttpServletResponse response)
{
String ipAddress = request.getRemoteAddr();
if (ipAddress == null)
{
return adminsHTML("An IP address could not be detected. Please ensure you are connecting using IPv4.");
}