Skip to content

Commit

Permalink
fixed error running on joyent
Browse files Browse the repository at this point in the history
  • Loading branch information
prgsmall committed Sep 21, 2011
1 parent 00c7a6c commit 9d0c0f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion acequia.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ var sys = require('sys'),
http = require('http'),
URL = require('url'),
net = require('net'),
dgram = require('dgram'),
osc = require('./libs/osc.js'),
ws = require('./libs/ws/ws/server.js'),
dgram = require('dgram'),
netIP = require('./libs/netIP.js'),
ac = require("./client.js");

Expand Down
10 changes: 6 additions & 4 deletions libs/netIP.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ var getNetworkIP = (function () {
var ips = [];
// extract IPs
var matches = stdout.match(filterRE);
// JS has no lookbehind REs, so we need a trick
for (var i = 0; i < matches.length; i++) {
ips.push(matches[i].replace(filterRE, '$1'));
if (matches) {
// JS has no lookbehind REs, so we need a trick
for (var i = 0; i < matches.length; i++) {
ips.push(matches[i].replace(filterRE, '$1'));
}
}

// filter BS
for (var i = 0, l = ips.length; i < l; i++) {
if (!ignoreRE.test(ips[i])) {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{ "name" : "acequia"
, "version" : "0.5.0"
, "scripts": { "start": "node ./acequia.js" }
Expand Down

0 comments on commit 9d0c0f5

Please sign in to comment.