Commit d44866ea authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Disco#Item for file transfer proxy now removed when it is disabled. JM-571

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3481 b35dd754-fafc-0310-a699-88a17e54d16e
parent 93766a84
/**
* $Revision$
* $Date$
* <p/>
* Copyright (C) 1999-2005 Jive Software. All rights reserved.
* $Revision $
* $Date $
*
* Copyright (C) 1999-2006 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Public License (GPL),
* a copy of which is included in this distribution.
......@@ -157,12 +157,20 @@ public class FileTransferProxy extends BasicModule
if (isEnabled()) {
connectionManager.processConnections(getProxyPort());
routingTable.addRoute(getAddress(), this);
XMPPServer.getInstance().getIQDiscoItemsHandler()
.addComponentItem(getAddress().toString(), "Socks 5 Bytestreams Proxy");
}
else {
XMPPServer.getInstance().getIQDiscoItemsHandler()
.removeComponentItem(getAddress().toString());
}
}
public void stop() {
super.stop();
XMPPServer.getInstance().getIQDiscoItemsHandler()
.removeComponentItem(getAddress().toString());
routingTable.removeRoute(getAddress());
connectionManager.disable();
}
......
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