mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Fix ip source to comply with new ip storage into ejabberd_http (thanks to Christophe Romain)
SVN Revision: 2192
This commit is contained in:
parent
fa83147926
commit
b44a3c7650
@ -108,7 +108,7 @@ join([H | T], Separator) ->
|
|||||||
|
|
||||||
log(File, Code, Request) ->
|
log(File, Code, Request) ->
|
||||||
{{Year, Month, Day}, {Hour, Minute, Second}} = calendar:local_time(),
|
{{Year, Month, Day}, {Hour, Minute, Second}} = calendar:local_time(),
|
||||||
IP = join(tuple_to_list(Request#request.ip), "."),
|
IP = join(tuple_to_list(element(1, Request#request.ip)), "."),
|
||||||
Path = join(Request#request.path, "/"),
|
Path = join(Request#request.path, "/"),
|
||||||
Query = case join(lists:map(fun(E) -> lists:concat([element(1, E), "=", element(2, E)]) end,
|
Query = case join(lists:map(fun(E) -> lists:concat([element(1, E), "=", element(2, E)]) end,
|
||||||
Request#request.q), "&") of
|
Request#request.q), "&") of
|
||||||
|
Loading…
Reference in New Issue
Block a user