mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
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:
parent
a78297bb6c
commit
aa8c162f11
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue