Diff

util/prosodyctl/check.lua @ 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
parent 12217:39043233de04
child 12230:f590058d8d99
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;