Commit 97d5cdff authored by Mikko Ahlroth's avatar Mikko Ahlroth

Only get remote IP for requests that are not for static files

parent 6af0bbb7
......@@ -4,7 +4,6 @@ defmodule CodeStats.Endpoint do
socket "/live_update_socket", CodeStats.LiveUpdateSocket
plug CodeStats.RequestTime
plug RemoteIp
# Serve at "/" the static files from "priv/static" directory.
......@@ -22,6 +21,8 @@ defmodule CodeStats.Endpoint do
plug Phoenix.CodeReloader
plug RemoteIp
plug Plug.RequestId
plug Plug.Logger
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment