From 4023f19fbaef72c3f603e53951c32ee12c906260 Mon Sep 17 00:00:00 2001 From: Darren Date: Sat, 1 Oct 2011 22:04:29 +0100 Subject: [PATCH] Correct port setting for page embedding --- node/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node/app.js b/node/app.js index ee31709..dcb2728 100644 --- a/node/app.js +++ b/node/app.js @@ -600,8 +600,8 @@ this.httpHandler = function (request, response) { debug = (typeof uri.query.debug !== 'undefined'); - port = 6667; ssl = (typeof request.socket.pair !== 'undefined'); + port = ssl ? 6697 : 6667; if (uri_parts[1] !== 'client') { if (uri.query) { server_set = ((typeof uri.query.server !== 'undefined') && (uri.query.server !== '')); @@ -621,6 +621,8 @@ this.httpHandler = function (request, response) { if (port[0] == '+') { port = port.substring(1); ssl = true; + } else { + ssl = false; } } nick = uri.query.nick || ''; -- 2.25.1