aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-06-25 17:26:58 +0200
committerKim Alvefur <zash@zash.se>2020-06-25 17:26:58 +0200
commit4a42f8042dc9c6289fc008c63ff2625fbdfc4808 (patch)
treeff391ddd4dd965220fd994e2d206367fee5dfafb /prosodyctl
parent57253b7f87f70ed3e9711c931b03aa650b128d72 (diff)
downloadprosody-4a42f8042dc9c6289fc008c63ff2625fbdfc4808.tar.gz
prosody-4a42f8042dc9c6289fc008c63ff2625fbdfc4808.zip
prosodyctl about: Report versions of luaunbound and libunbound
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl7
1 files changed, 7 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 288d20b2..6b82e678 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -442,6 +442,7 @@ function commands.about(arg)
local luaevent =dependencies.softreq"luaevent";
dependencies.softreq"ssl";
dependencies.softreq"DBI";
+ local lunbound = dependencies.softreq"lunbound";
for name, module in pairs(package.loaded) do
if type(module) == "table" and rawget(module, "_VERSION")
and name ~= "_G" and not name:match("%.") then
@@ -454,6 +455,12 @@ function commands.about(arg)
if luaevent then
module_versions["libevent"] = luaevent.core.libevent_version();
end
+ if lunbound then
+ if not module_versions["lunbound"] then
+ module_versions["lunbound"] = "<= 0.5";
+ end
+ module_versions["libunbound"] = lunbound._LIBVER;
+ end
local sorted_keys = array.collect(keys(module_versions)):sort();
for _, name in ipairs(sorted_keys) do
print(name..":"..string.rep(" ", longest_name-#name), module_versions[name]);