From fbaf772bc8094e53cb6ddd88f837b0c6de0be7a4 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Fri, 3 Oct 2003 00:47:45 +0000 Subject: [PATCH] Use host value from server (SMACK-94). git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2128 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/PacketReader.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/org/jivesoftware/smack/PacketReader.java b/source/org/jivesoftware/smack/PacketReader.java index 55d31476b..cd12aa008 100644 --- a/source/org/jivesoftware/smack/PacketReader.java +++ b/source/org/jivesoftware/smack/PacketReader.java @@ -293,6 +293,10 @@ class PacketReader { connectionIDLock.notifyAll(); } } + else if (parser.getAttributeName(i).equals("from")) { + // Use the server name that the server says that it is. + connection.host = parser.getAttributeValue(i); + } } } }