mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
* src/ejabberd_service.erl: Answer "Bad Request" on unknown tags
SVN Revision: 73
This commit is contained in:
parent
741ff3cc75
commit
d19c1b3a3f
@ -1,3 +1,7 @@
|
||||
2003-02-14 Alexey Shchepin <alexey@sevcom.net>
|
||||
|
||||
* src/ejabberd_service.erl: Answer "Bad Request" on unknown tags
|
||||
|
||||
2003-02-13 Alexey Shchepin <alexey@sevcom.net>
|
||||
|
||||
* src/ejabberd_c2s.erl: Bugfix: close socket when stream is closed
|
||||
|
@ -42,7 +42,7 @@
|
||||
% [{access, c2s}, {ssl, [{certfile, "./ssl.pem"}]}]},
|
||||
{5269, ejabberd_s2s_in, start, []},
|
||||
{8888, ejabberd_service, start,
|
||||
[{host, "asd.e.localhost", [{password, "asdqwe"}]}]}
|
||||
[{host, "conference.e.localhost", [{password, "asdqwe"}]}]}
|
||||
]}.
|
||||
|
||||
% This value (5569) is only for debugging, must be 5269
|
||||
|
@ -173,6 +173,8 @@ stream_established({xmlstreamelement, El}, StateData) ->
|
||||
(ToJID /= error) and (FromJID /= error) ->
|
||||
ejabberd_router:route(FromJID, ToJID, El);
|
||||
true ->
|
||||
Err = jlib:make_error_reply(El, "400", "Bad Request"),
|
||||
send_element(StateData#state.socket, Err),
|
||||
error
|
||||
end,
|
||||
{next_state, stream_established, StateData};
|
||||
|
Loading…
Reference in New Issue
Block a user