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.
This commit is contained in:
Kim Alvefur 2020-06-01 23:17:20 +02:00
parent a78297bb6c
commit aa8c162f11

View file

@ -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");