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

Modified #getRoutes to create a s2s session if required.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1437 b35dd754-fafc-0310-a699-88a17e54d16e
parent 44b6d092
......@@ -123,6 +123,13 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable {
}
public Iterator getRoutes(JID node) {
// Check if the address belongs to a remote server
if (!node.getDomain().contains(serverName)) {
// Authenticate this hostname with the remote server so that the remote server can
// accept packets from this server.
OutgoingServerSession.authenticateDomain(serverName, node.getDomain());
}
LinkedList list = null;
routeLock.readLock().lock();
try {
......
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