# HG changeset patch # User Kim Alvefur # Date 1591081649 -7200 # Node ID 813e632431e65be9e94dfc52d5dd6837294a0015 # Parent a3f3f42736f21ed6d00a7c434a4ce9bc75e2dbf2 util.prosodyctl.shell: Correct check for --socket diff -r a3f3f42736f2 -r 813e632431e6 util/prosodyctl/shell.lua --- 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