25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Fix ip source to comply with new ip storage into ejabberd_http (thanks to Christophe Romain)

SVN Revision: 2177
This commit is contained in:
Badlop 2009-06-16 13:45:22 +00:00
parent d2684bc3e8
commit 3681835668

View File

@ -108,7 +108,7 @@ join([H | T], Separator) ->
log(File, Code, Request) ->
{{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, "/"),
Query = case join(lists:map(fun(E) -> lists:concat([element(1, E), "=", element(2, E)]) end,
Request#request.q), "&") of