Commit d89a812f authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Don't attempt a s2s to the same server (in the retry/smart logic). :)


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1703 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9bf06d9c
...@@ -145,10 +145,13 @@ public class OutgoingServerSession extends Session { ...@@ -145,10 +145,13 @@ public class OutgoingServerSession extends Session {
int index = hostname.indexOf('.'); int index = hostname.indexOf('.');
while (index > -1 && index < hostname.length()) { while (index > -1 && index < hostname.length()) {
String newHostname = hostname.substring(index + 1); String newHostname = hostname.substring(index + 1);
String serverName = XMPPServer.getInstance().getServerInfo()
.getName();
if ("com".equals(newHostname) || "net".equals(newHostname) || if ("com".equals(newHostname) || "net".equals(newHostname) ||
"org".equals(newHostname) || "org".equals(newHostname) ||
"gov".equals(newHostname) || "gov".equals(newHostname) ||
"edu".equals(newHostname)) { "edu".equals(newHostname) ||
serverName.equals(newHostname)) {
return false; return false;
} }
session = session =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment