Software /
code /
prosody
Changeset
10964:d6a3d652ca32
prosodyctl about: Report versions of luaunbound and libunbound
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 25 Jun 2020 17:26:58 +0200 |
parents | 10963:80733851be8b |
children | 10965:f5d5fc409680 |
files | prosodyctl |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/prosodyctl Thu Jun 25 17:26:21 2020 +0200 +++ b/prosodyctl Thu Jun 25 17:26:58 2020 +0200 @@ -442,6 +442,7 @@ 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 @@ 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]);