Windows does not like IP addresses of 0.0.0.0.

This commit is contained in:
Chad Weider 2012-02-28 18:13:10 -08:00
parent a7c009d0c9
commit 45ba5d60dc
2 changed files with 2 additions and 2 deletions

View file

@ -154,7 +154,7 @@ async.waterfall([
// CommonJS loader on the client-side. // CommonJS loader on the client-side.
var jsServer = new (Yajsml.Server)({ var jsServer = new (Yajsml.Server)({
rootPath: 'minified/' rootPath: 'minified/'
, rootURI: 'http://' + settings.ip + ":" + settings.port + '/static/js/' , rootURI: 'http://localhost:' + settings.port + '/static/js/'
}); });
var StaticAssociator = Yajsml.associators.StaticAssociator; var StaticAssociator = Yajsml.associators.StaticAssociator;
var associations = var associations =

View file

@ -148,7 +148,7 @@ function getAceFile(callback) {
var filename = item.match(/"([^"]*)"/)[1]; var filename = item.match(/"([^"]*)"/)[1];
var request = require('request'); var request = require('request');
var baseURI = 'http://' + settings.ip + ":" + settings.port var baseURI = 'http://localhost:' + settings.port
request(baseURI + path.normalize(path.join('/static/', filename)), function (error, response, body) { request(baseURI + path.normalize(path.join('/static/', filename)), function (error, response, body) {
if (!error && response.statusCode == 200) { if (!error && response.statusCode == 200) {