Skip to content

Commit cbb2d95

Browse files
committed
minor changes
1 parent fe70c90 commit cbb2d95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/toppage_handler.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ handle(
5757
{ok, Body, _} = cowboy_req:body(Req),
5858
Url = case proplists:lookup(?SECRET_PROXY_HEADER, Headers) of
5959
{?SECRET_PROXY_HEADER, ThisNode} ->
60-
lager:warning("~p Recursive request!", [self()]),
60+
{Peer, _} = cowboy_req:peer(Req),
61+
lager:warning("~p Recursive request from ~p!", [self(), Peer]),
6162
?HACKER_REDIRECT_PAGE;
6263
none ->
6364
{ ReqUrl, _ } = cowboy_req:url(Req),

0 commit comments

Comments
 (0)