Software /
code /
prosody
Comparison
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 |
parent | 10862:1cfae9e85021 |
child | 12392:5373724e08a5 |
comparison
equal
deleted
inserted
replaced
10865:9c27b2385fad | 10866:5265f7fe11dd |
---|---|
9 | 9 |
10 local server = require "net.server"; | 10 local server = require "net.server"; |
11 | 11 |
12 local adminstream = require "util.adminstream"; | 12 local adminstream = require "util.adminstream"; |
13 | 13 |
14 local socket_path = module:get_option_string("admin_socket", prosody.paths.data.."/prosody.sock"); | 14 local socket_path = module:get_option_path("admin_socket", "prosody.sock", "data"); |
15 | 15 |
16 local sessions = module:shared("sessions"); | 16 local sessions = module:shared("sessions"); |
17 | 17 |
18 local function fire_admin_event(session, stanza) | 18 local function fire_admin_event(session, stanza) |
19 local event_data = { | 19 local event_data = { |