mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-27 00:32:07 +01:00
Don't include version=1.0 when using old SSL connections. SMACK-90
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2818 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
283b0f33f5
commit
d61e2e5c59
1 changed files with 7 additions and 1 deletions
|
@ -283,7 +283,13 @@ class PacketWriter {
|
||||||
stream.append(" to=\"").append(connection.serviceName).append("\"");
|
stream.append(" to=\"").append(connection.serviceName).append("\"");
|
||||||
stream.append(" xmlns=\"jabber:client\"");
|
stream.append(" xmlns=\"jabber:client\"");
|
||||||
stream.append(" xmlns:stream=\"http://etherx.jabber.org/streams\"");
|
stream.append(" xmlns:stream=\"http://etherx.jabber.org/streams\"");
|
||||||
|
if (connection instanceof SSLXMPPConnection) {
|
||||||
|
// Old SSL connections should not include indicate XMPP 1.0 compliance
|
||||||
|
stream.append(">");
|
||||||
|
}
|
||||||
|
else {
|
||||||
stream.append(" version=\"1.0\">");
|
stream.append(" version=\"1.0\">");
|
||||||
|
}
|
||||||
writer.write(stream.toString());
|
writer.write(stream.toString());
|
||||||
writer.flush();
|
writer.flush();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue