Commit e7d5410c authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Return ack when trying to bind initial domain (again). JM-624

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3690 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4f2ccfe4
...@@ -59,6 +59,11 @@ public class ComponentSocketReader extends SocketReader { ...@@ -59,6 +59,11 @@ public class ComponentSocketReader extends SocketReader {
reply.add(new PacketError(PacketError.Condition.bad_request).getElement()); reply.add(new PacketError(PacketError.Condition.bad_request).getElement());
connection.deliverRawText(reply.asXML()); connection.deliverRawText(reply.asXML());
} }
else if (extraDomain.equals(initialDomain)) {
// Component is binding initial domain that is already registered
// Send confirmation that the new domain has been registered
connection.deliverRawText("<bind/>");
}
else if (extraDomain.endsWith(initialDomain)) { else if (extraDomain.endsWith(initialDomain)) {
// Only accept subdomains under the initial registered domain // Only accept subdomains under the initial registered domain
if (component.getSubdomains().contains(extraDomain)) { if (component.getSubdomains().contains(extraDomain)) {
......
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