# HG changeset patch # User Kim Alvefur # Date 1591048383 -7200 # Node ID fa06cf7059cdf279e25aba73745feefce94502ab # Parent 561138169983264fe24dc4beb570cdfbfd40e5c5 util.prosodyctl.shell: Use same config option as module for socket path So now if you set it to a custom value, both the client and the server should use it. diff -r 561138169983 -r fa06cf7059cd util/prosodyctl/shell.lua --- a/util/prosodyctl/shell.lua Mon Jun 01 23:26:30 2020 +0200 +++ b/util/prosodyctl/shell.lua Mon Jun 01 23:53:03 2020 +0200 @@ -6,6 +6,7 @@ os.exit(1); end +local config = require "core.configmanager"; local server = require "net.server"; local st = require "util.stanza"; local path = require "util.paths"; @@ -113,7 +114,7 @@ end end); - local socket_path = path.join(prosody.paths.data, "prosody.sock"); + local socket_path = path.resolve_relative_path(prosody.paths.data, config.get("*", "admin_socket") or "prosody.sock"); local conn = connection(socket_path, client.listeners); local ok, err = conn:connect(); if not ok then