Software / code / prosody
Changeset
10866:5265f7fe11dd
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.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 01 Jun 2020 23:17:20 +0200 |
| parents | 10865:9c27b2385fad |
| children | 10867:561138169983 |
| files | plugins/mod_admin_socket.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_socket.lua Mon Jun 01 17:55:01 2020 +0200 +++ b/plugins/mod_admin_socket.lua Mon Jun 01 23:17:20 2020 +0200 @@ -11,7 +11,7 @@ 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");