aboutsummaryrefslogtreecommitdiffstats
path: root/util
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
commit431e3bcc54c79dc521786cbce5a16116d5b25eb8 (patch)
tree06318c952e8a8dc109e28bd14c276f463b37ab7f /util
parent360dac00c284c855dd251e709a419dac62d6a214 (diff)
downloadprosody-431e3bcc54c79dc521786cbce5a16116d5b25eb8.tar.gz
prosody-431e3bcc54c79dc521786cbce5a16116d5b25eb8.zip
util.prosodyctl.shell: Allow passing path to socket on command line
E.g. `prosodyctl shell --socket /path/to/prosody.scok`
Diffstat (limited to 'util')
-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