projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
199527b
)
Correct port setting for page embedding
author
Darren
<darren@darrenwhitlen.com>
Sat, 1 Oct 2011 21:04:29 +0000
(22:04 +0100)
committer
Darren
<darren@darrenwhitlen.com>
Sat, 1 Oct 2011 21:04:29 +0000
(22:04 +0100)
node/app.js
patch
|
blob
|
blame
|
history
diff --git
a/node/app.js
b/node/app.js
index ee31709ac9a00abcd018b80c4abeec246e943273..dcb2728dbecdadc02732331b5329dfaf754dc661 100644
(file)
--- 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 || '';