aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_socket.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-06-01 23:17:20 +0200
committerKim Alvefur <zash@zash.se>2020-06-01 23:17:20 +0200
commitaa8c162f111c2d0e2e5f9c20b2ea8e9588ed4e14 (patch)
tree0b31730d04f646ab0a48cfe881049266cc806891 /plugins/mod_admin_socket.lua
parenta78297bb6c6514d5360339a84f6acc1a94d5198f (diff)
downloadprosody-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.lua2
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");