Commit 6a9b4a84 authored by Günther Niess's avatar Günther Niess Committed by niess

OF-61: Introduce adminConsole.interface to openfire.xml (Patch from Matt Parker)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11496 b35dd754-fafc-0310-a699-88a17e54d16e
parent 3efb34fb
...@@ -213,13 +213,15 @@ public class AdminConsolePlugin implements Plugin { ...@@ -213,13 +213,15 @@ public class AdminConsolePlugin implements Plugin {
* will be available in all interfaces. * will be available in all interfaces.
*/ */
public String getBindInterface() { public String getBindInterface() {
String interfaceName = JiveGlobals.getXMLProperty("network.interface"); String adminInterfaceName = JiveGlobals.getXMLProperty("adminConsole.interface");
String globalInterfaceName = JiveGlobals.getXMLProperty("network.interface");
String bindInterface = null; String bindInterface = null;
if (interfaceName != null) { if (adminInterfaceName != null && adminInterfaceName.trim().length() > 0) {
if (interfaceName.trim().length() > 0) { bindInterface = adminInterfaceName;
bindInterface = interfaceName;
}
} }
else if (globalInterfaceName != null && globalInterfaceName.trim().length() > 0) {
bindInterface = globalInterfaceName;
}
return bindInterface; return bindInterface;
} }
......
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