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;