mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +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:
parent
d2684bc3e8
commit
3681835668
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user