updated install script to only populate "socket" object in client config with "address", which takes "use_port" into account.

This closes #234
v1.18.x
Julian Lam 12 years ago
parent 106157a951
commit 8a53c56a46

@ -15,7 +15,7 @@ var socket,
API_URL = data.api_url;
config = data;
socket = io.connect(config.socket.address + (config.socket.port ? ':' + config.socket.port : ''));
socket = io.connect(config.socket.address);
var reconnecting = false;
var reconnectTries = 0;

@ -75,8 +75,7 @@ var async = require('async'),
server_conf = config,
client_conf = {
socket: {
address: protocol + '//' + host,
port: config.port
address: protocol + '//' + host + (config.use_port ? ':' + config.port : '')
},
api_url: protocol + '//' + host + (config.use_port ? ':' + config.port : '') + relative_path + '/api/',
relative_path: relative_path

Loading…
Cancel
Save