Skip to content

Commit

Permalink
use 127.0.0.1 if there are no ip addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Dec 13, 2014
1 parent 52d71c5 commit dba4d55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/hft-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dba4d55

Please sign in to comment.