From 32b3acd9a2cd20ea51e1375756bd95583d7e3dd7 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 6 Jul 2016 19:08:21 +0300 Subject: s2s: connection out must have stream id --- src/main/java/com/juick/xmpp/s2s/ConnectionOut.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java index b79cb49a..581881a6 100644 --- a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java +++ b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java @@ -17,6 +17,7 @@ import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.UnrecoverableKeyException; import java.security.cert.CertificateException; +import java.util.UUID; import java.util.logging.Level; /** @@ -41,6 +42,7 @@ public class ConnectionOut extends Connection implements Runnable { to = hostname; this.checkSID = checkSID; this.dbKey = dbKey; + streamID = UUID.randomUUID().toString(); } void sendOpenStream() throws IOException { -- cgit v1.2.3