Diff

util/prosodyctl/shell.lua @ 10873:813e632431e6

util.prosodyctl.shell: Correct check for --socket
author Kim Alvefur <zash@zash.se>
date Tue, 02 Jun 2020 09:07:29 +0200
parent 10871:e5dee71d0ebb
child 10874:98c535531450
line wrap: on
line diff
--- a/util/prosodyctl/shell.lua	Tue Jun 02 08:02:03 2020 +0100
+++ b/util/prosodyctl/shell.lua	Tue Jun 02 09:07:29 2020 +0200
@@ -114,7 +114,7 @@
 		end
 	end);
 
-	local socket_path = path.resolve_relative_path(prosody.paths.data, arg.socket or config.get("*", "admin_socket") or "prosody.sock");
+	local socket_path = path.resolve_relative_path(prosody.paths.data, prosody.opts.socket or config.get("*", "admin_socket") or "prosody.sock");
 	local conn = connection(socket_path, client.listeners);
 	local ok, err = conn:connect();
 	if not ok then