aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_socket.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mod_admin_socket.lua b/plugins/mod_admin_socket.lua
index c094aad2..2085c5b0 100644
--- a/plugins/mod_admin_socket.lua
+++ b/plugins/mod_admin_socket.lua
@@ -55,7 +55,11 @@ function module.load()
os.remove(socket_path);
assert(sock:bind(socket_path));
assert(sock:listen());
- conn = server.watchfd(sock:getfd(), accept_connection);
+ if server.wrapserver then
+ conn = server.wrapserver(sock, socket_path, 0, listeners);
+ else
+ conn = server.watchfd(sock:getfd(), accept_connection);
+ end
end
function module.unload()