mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
Remove version=1.0 from stream opening when TLS is not available (thanks to Karim Gemayel)
This commit is contained in:
parent
897141c9e1
commit
a40e9c2626
@ -208,8 +208,12 @@ wait_for_stream({xmlstreamstart, Opening}, StateData) ->
|
|||||||
send_element(StateData, exmpp_stream:features(Features)),
|
send_element(StateData, exmpp_stream:features(Features)),
|
||||||
{next_state, stream_established, StateData};
|
{next_state, stream_established, StateData};
|
||||||
{?NS_JABBER_SERVER, true, _Server, _} ->
|
{?NS_JABBER_SERVER, true, _Server, _} ->
|
||||||
Opening_Reply = exmpp_stream:opening_reply(Opening,
|
#xmlel{attrs = Attrs} = Opening,
|
||||||
StateData#state.streamid),
|
New_Attrs = exmpp_xml:remove_attribute_from_list(
|
||||||
|
Attrs, <<"version">>),
|
||||||
|
Opening_Reply = exmpp_stream:opening_reply(
|
||||||
|
Opening#xmlel{attrs = New_Attrs},
|
||||||
|
StateData#state.streamid),
|
||||||
send_element(StateData,
|
send_element(StateData,
|
||||||
exmpp_stream:set_dialback_support(Opening_Reply)),
|
exmpp_stream:set_dialback_support(Opening_Reply)),
|
||||||
{next_state, stream_established, StateData};
|
{next_state, stream_established, StateData};
|
||||||
|
Loading…
Reference in New Issue
Block a user