From dba4d55b8b13693769fa1eb58376ea79754686d9 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sat, 13 Dec 2014 01:21:47 -0800 Subject: [PATCH] use 127.0.0.1 if there are no ip addresses --- server/hft-server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/hft-server.js b/server/hft-server.js index 0add7eea..a1c8d622 100644 --- a/server/hft-server.js +++ b/server/hft-server.js @@ -116,6 +116,9 @@ var HFTServer = function(options, startedCallback) { return function() { var addresses = g.address ? [g.address] : iputils.getIpAddresses(); + if (addresses.length == 0) { + addresses = ["127.0.0.1"]; + } var addressesAsStr = addresses.join(","); if (addressesAsStr !== oldAddressesAsStr) { oldAddressesAsStr = addressesAsStr;