diff --git a/lib/util/base.js b/lib/util/base.js index 1193d65..62df90d 100644 --- a/lib/util/base.js +++ b/lib/util/base.js @@ -12,7 +12,7 @@ const destroy = () => {}; * @param {any} req The request to retrieve the key. */ const verifyKey = req => { - if (!config.KEY) { + if (!config.conf.KEY) { return; } const _key = req.query.key || req.headers["X-Proxy-Key"] || null;