summaryrefslogtreecommitdiffstats
path: root/lib/consul.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/consul.js')
-rw-r--r--lib/consul.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/consul.js b/lib/consul.js
index 40de84b..a190093 100644
--- a/lib/consul.js
+++ b/lib/consul.js
@@ -19,7 +19,7 @@ See the License for the specific language governing permissions and limitations
const KEY = '/v1/kv/';
const SERVICE = '/v1/catalog/service/';
const CONSUL = 'consul';
-const CONSUL_URL = 'http://' + (process.env.CONSUL_HOST || CONSUL) + ':8500';
+const CONSUL_URL = process.env.CONSUL_URL || ('http://' + (process.env.CONSUL_HOST || CONSUL) + ':8500');
const doRequest = require('./promise_request').doRequest;