Software /
code /
prosody
Changeset
12218:0795e1ccf3d8
util.prosodyctl.check: Fix use of LuaSocket URL parser
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 27 Jan 2022 12:52:01 +0100 (2022-01-27) |
parents | 12217:39043233de04 |
children | 12219:0a44def211fa |
files | util/prosodyctl/check.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/prosodyctl/check.lua Thu Jan 27 12:36:50 2022 +0100 +++ b/util/prosodyctl/check.lua Thu Jan 27 12:52:01 2022 +0100 @@ -625,7 +625,7 @@ local http_internal_host = http_host; local http_url = configmanager.get(host, "http_external_url"); if http_url then - local url_parse = require "socket.url"; + local url_parse = require "socket.url".parse; local external_url_parts = url_parse(http_url); if external_url_parts then http_host = external_url_parts.host;