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

Optimized hostname lookup.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1527 b35dd754-fafc-0310-a699-88a17e54d16e
parent ff0349a3
......@@ -147,6 +147,10 @@ public class OutgoingServerSession extends Session {
int index = hostname.indexOf('.');
while (index > -1 && index < hostname.length()) {
String newHostname = hostname.substring(index + 1);
if ("com".equals(newHostname) || "net".equals(newHostname) ||
"org".equals(newHostname) || "gov".equals(newHostname)) {
return false;
}
session =
new ServerDialback().createOutgoingSession(domain, newHostname, port);
if (session != null) {
......
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