Fix allow-host preset not working correctly

Problem: The preset for allow-host is coming from "host".

Solution: Make the preset for allow-host come from "allow-host".
This commit is contained in:
Christian Bundy 2020-04-14 10:53:23 -07:00
parent 1b6c559115
commit 8ccfb1a1ec

View File

@ -34,7 +34,7 @@ module.exports = (presets, defaultConfigFile) =>
.options("allow-host", {
describe:
"Extra hostname to be whitelisted (useful when running behind a proxy)",
default: _.get(presets, "host", null),
default: _.get(presets, "allow-host", null),
type: "string",
})
.options("port", {