aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-06-01 23:57:50 +0200
committerKim Alvefur <zash@zash.se>2020-06-01 23:57:50 +0200
commitf4436b0ad840c535dc5a8df513fb6e15401135d3 (patch)
tree06318c952e8a8dc109e28bd14c276f463b37ab7f
parent05f5f794bf9afcf412f5f5a9b3935f5fb048ba0d (diff)
downloadprosody-f4436b0ad840c535dc5a8df513fb6e15401135d3.tar.gz
prosody-f4436b0ad840c535dc5a8df513fb6e15401135d3.zip
util.prosodyctl.shell: Allow passing path to socket on command line
E.g. `prosodyctl shell --socket /path/to/prosody.scok`
-rw-r--r--util/prosodyctl/shell.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl/shell.lua b/util/prosodyctl/shell.lua
index 0e019152..cbcea927 100644
--- a/util/prosodyctl/shell.lua
+++ b/util/prosodyctl/shell.lua
@@ -114,7 +114,7 @@ local function start(arg) --luacheck: ignore 212/arg
end
end);
- local socket_path = path.resolve_relative_path(prosody.paths.data, config.get("*", "admin_socket") or "prosody.sock");
+ local socket_path = path.resolve_relative_path(prosody.paths.data, arg.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