aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl
diff options
context:
space:
mode:
Diffstat (limited to 'util/prosodyctl')
-rw-r--r--util/prosodyctl/cert.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/prosodyctl/cert.lua b/util/prosodyctl/cert.lua
index a60a9647..59b6f982 100644
--- a/util/prosodyctl/cert.lua
+++ b/util/prosodyctl/cert.lua
@@ -201,6 +201,10 @@ function cert_commands.import(arg)
for host in pairs(prosody.hosts) do
if host ~= "*" and configmanager.get(host, "enabled") ~= false then
table.insert(hostnames, host);
+ local http_host = configmanager.get(host, "http_host") or host;
+ if http_host ~= host then
+ table.insert(hostnames, http_host);
+ end
end
end
end