Commit 69764da7 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Incomplete implementation for subdomains in a remote domain.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1488 b35dd754-fafc-0310-a699-88a17e54d16e
parent a15bb3a3
......@@ -119,6 +119,15 @@ public class OutgoingServerSession extends Session {
return true;
}
else {
// Check if hostname is a subdomain of an existing outgoing session
for (String otherHost : sessionManager.getOutgoingServers()) {
if (hostname.contains(otherHost)) {
session = sessionManager.getOutgoingServerSession(otherHost);
// Add the new hostname to the found session
session.addHostname(hostname);
return true;
}
}
return false;
}
}
......
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