aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/juick/xmpp/s2s/ConnectionIn.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java b/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
index 950a2eaa..85c64db3 100644
--- a/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
+++ b/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
@@ -47,8 +47,8 @@ public class ConnectionIn extends Connection {
parser.next(); // stream:stream
updateTsRemoteData();
if (!parser.getName().equals("stream")
- || !parser.getAttributeValue(null, "stream").equals(NS_STREAM)
- || !parser.getAttributeValue(null, "db").equals(NS_DB)) {
+ || !parser.getNamespace("stream").equals(NS_STREAM)
+ || !parser.getNamespace("db").equals(NS_DB)) {
// || !parser.getAttributeValue(null, "version").equals("1.0")
// || !parser.getAttributeValue(null, "to").equals(Main.HOSTNAME)) {
throw new Exception("STREAM FROM ? " + streamID + " INVALID FIRST PACKET");