Commit 3b3e348f authored by Bill Lynch's avatar Bill Lynch Committed by bill

SSL enabled by default


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@420 b35dd754-fafc-0310-a699-88a17e54d16e
parent 04f94fb4
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
int port = ParamUtils.getIntParameter(request,"port",-1); int port = ParamUtils.getIntParameter(request,"port",-1);
int embeddedPort = ParamUtils.getIntParameter(request,"embeddedPort",-1); int embeddedPort = ParamUtils.getIntParameter(request,"embeddedPort",-1);
int sslPort = ParamUtils.getIntParameter(request,"sslPort",-1); int sslPort = ParamUtils.getIntParameter(request,"sslPort",-1);
boolean sslEnabled = ParamUtils.getBooleanParameter(request,"sslEnabled"); boolean sslEnabled = ParamUtils.getBooleanParameter(request,"sslEnabled",true);
boolean doContinue = request.getParameter("continue") != null; boolean doContinue = request.getParameter("continue") != null;
...@@ -65,16 +65,10 @@ ...@@ -65,16 +65,10 @@
// Load the current values: // Load the current values:
if (!doContinue) { if (!doContinue) {
domain = JiveGlobals.getProperty("xmpp.domain"); domain = JiveGlobals.getProperty("xmpp.domain");
try { port = JiveGlobals.getIntProperty("xmpp.socket.plain.port", 5222);
port = Integer.parseInt(JiveGlobals.getProperty("xmpp.socket.plain.port")); embeddedPort = JiveGlobals.getIntProperty("embedded-web.port", 9090);
} catch (Exception ignored) {} sslPort = JiveGlobals.getIntProperty("xmpp.socket.ssl.port",5223);
try { sslEnabled = JiveGlobals.getBooleanProperty("xmpp.socket.ssl.active", true);
embeddedPort = Integer.parseInt(JiveGlobals.getProperty("embedded-web.port"));
} catch (Exception ignored) {}
try {
sslPort = Integer.parseInt(JiveGlobals.getProperty("xmpp.socket.ssl.port"));
} catch (Exception ignored) {}
sslEnabled = "true".equals(JiveGlobals.getProperty("xmpp.socket.ssl.active"));
// If the domain is still blank, guess at the value: // If the domain is still blank, guess at the value:
if (domain == null) { if (domain == null) {
......
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