diff options
author | Kim Alvefur <zash@zash.se> | 2020-06-01 23:17:20 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-06-01 23:17:20 +0200 |
commit | aa8c162f111c2d0e2e5f9c20b2ea8e9588ed4e14 (patch) | |
tree | 0b31730d04f646ab0a48cfe881049266cc806891 /plugins/mod_admin_socket.lua | |
parent | a78297bb6c6514d5360339a84f6acc1a94d5198f (diff) | |
download | prosody-aa8c162f111c2d0e2e5f9c20b2ea8e9588ed4e14.tar.gz prosody-aa8c162f111c2d0e2e5f9c20b2ea8e9588ed4e14.zip |
mod_admin_socket: Use module API meant for file paths
Makes it so that a relative path in the config becomes relative to the
data directory.
Diffstat (limited to 'plugins/mod_admin_socket.lua')
-rw-r--r-- | plugins/mod_admin_socket.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_socket.lua b/plugins/mod_admin_socket.lua index 2085c5b0..b197adae 100644 --- a/plugins/mod_admin_socket.lua +++ b/plugins/mod_admin_socket.lua @@ -11,7 +11,7 @@ local server = require "net.server"; local adminstream = require "util.adminstream"; -local socket_path = module:get_option_string("admin_socket", prosody.paths.data.."/prosody.sock"); +local socket_path = module:get_option_path("admin_socket", "prosody.sock", "data"); local sessions = module:shared("sessions"); |