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,7 +208,11 @@ wait_for_stream({xmlstreamstart, Opening}, StateData) ->
|
||||
send_element(StateData, exmpp_stream:features(Features)),
|
||||
{next_state, stream_established, StateData};
|
||||
{?NS_JABBER_SERVER, true, _Server, _} ->
|
||||
Opening_Reply = exmpp_stream:opening_reply(Opening,
|
||||
#xmlel{attrs = Attrs} = Opening,
|
||||
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,
|
||||
exmpp_stream:set_dialback_support(Opening_Reply)),
|
||||
|
Loading…
Reference in New Issue
Block a user