gjohnson / consul-node

A node.js client library for consul.
MIT License
67 stars 16 forks source link

Typo in the Readme #7

Open abduegal opened 9 years ago

abduegal commented 9 years ago

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