Software /
code /
prosody
Changeset
9755:fd4d516556aa
mod_admin_telnet: Serialize config values (table: 0x123abc isn't useful)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 04 Jan 2019 13:41:39 +0100 |
parents | 9754:cbbc6fefd07d |
children | 9756:38f7bde4cfe0 |
files | plugins/mod_admin_telnet.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Fri Jan 04 13:39:13 2019 +0100 +++ b/plugins/mod_admin_telnet.lua Fri Jan 04 13:41:39 2019 +0100 @@ -32,6 +32,7 @@ local envloadfile = require "util.envload".envloadfile; local has_pposix, pposix = pcall(require, "util.pposix"); local async = require "util.async"; +local serialize = require "util.serialization".new({ fatal = false, unquoted = true}); local commands = module:shared("commands") local def_env = module:shared("env"); @@ -500,7 +501,7 @@ host, key = "*", host; end local config_get = require "core.configmanager".get - return true, tostring(config_get(host, key)); + return true, serialize(config_get(host, key)); end function def_env.config:reload()