Mercurial > prosody-hg
diff plugins/mod_admin_socket.lua @ 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 | 1cfae9e85021 |
| children | 5373724e08a5 |
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");
