mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2025-07-15 02:58:34 +00:00
Punishments somewhat working
This commit is contained in:
@ -41,10 +41,10 @@ public class AbstractServlet extends HttpServlet
|
||||
@Override
|
||||
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
|
||||
{
|
||||
String ipAddress = req.getHeader("X-FORWARDED-FOR");
|
||||
String ipAddress = req.getRemoteAddr();
|
||||
if (ipAddress == null)
|
||||
{
|
||||
ipAddress = req.getRemoteAddr();
|
||||
ipAddress = req.getHeader("X-FORWARDED-FOR");
|
||||
}
|
||||
|
||||
Log.log(ipAddress + " visited endpoint " + req.getHttpServletMapping().getMatchValue());
|
||||
@ -79,7 +79,6 @@ public class AbstractServlet extends HttpServlet
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@Data
|
||||
public static class Mapping
|
||||
{
|
||||
|
Reference in New Issue
Block a user