From 5c28bff26bf8eb91d6e07463601066af1e7892a6 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 21 Jun 2018 18:59:56 +0000 Subject: [PATCH] support older servers --- lib/cli-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli-common.js b/lib/cli-common.js index edc726b..1c20d56 100644 --- a/lib/cli-common.js +++ b/lib/cli-common.js @@ -199,7 +199,7 @@ common.api.token = function (state, handlers) { }); } - if (dir) { + if (dir && dir.api_host) { handlers.directory(dir, afterDir); } else { // backwards compat