util.prosodyctl.check: Fix use of LuaSocket URL parser
authorKim Alvefur <zash@zash.se>
Thu, 27 Jan 2022 12:52:01 +0100
changeset 12222 0795e1ccf3d8
parent 12221 39043233de04
child 12223 0a44def211fa
util.prosodyctl.check: Fix use of LuaSocket URL parser
util/prosodyctl/check.lua
--- 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;