From 51533ebeb2fa1b7689d55f91579f1f6094a64bdf Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 8 Jun 2024 14:40:57 +0100 Subject: [PATCH] [Minor] Allow `options.upstreams` to be used as well --- lualib/lua_cfg_transform.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua index d6243ade1..02d8526e5 100644 --- a/lualib/lua_cfg_transform.lua +++ b/lualib/lua_cfg_transform.lua @@ -630,5 +630,10 @@ return function(cfg) cfg.emails = {} end + -- Common misprint options.upstreams -> options.upstream + if type(cfg.options) == 'table' and type(cfg.options.upstreams) == 'table' and not cfg.options.upstream then + cfg.options.upstream = cfg.options.upstreams + end + return ret, cfg end -- 2.39.5