consul-node icon indicating copy to clipboard operation
consul-node copied to clipboard

Typo in the Readme

Open abduegal opened this issue 10 years ago • 0 comments

There is a typo in the readme in the configuration section:

var Consul = require('consul-node');

var consul = new Consul({
  host: 'localhost',
  port: 8300,
});

should be:

var Consul = require('consul-node');

var consul = new Consul({
  hostname: 'localhost',
  port: 8300,
});

host should be hostname, so it can overwrite the default hostname in consul.js

abduegal avatar Mar 03 '15 23:03 abduegal