diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-01-02 20:40:34 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-01-02 20:40:34 +0000 |
commit | 581d2c49579973ed043c5435332ac552d07738cb (patch) | |
tree | d617f9afa351bdab3ef51879e1e4c999472273ce | |
parent | 14a117098075e7d7a8a692aae119ed02267607d6 (diff) | |
download | prosody-581d2c49579973ed043c5435332ac552d07738cb.tar.gz prosody-581d2c49579973ed043c5435332ac552d07738cb.zip |
net.server_event: Add conn.type == 'server' for server sockets (fixes closeallservers() )
-rw-r--r-- | net/server_event.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index ec8af2a4..e5705ab5 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -614,6 +614,7 @@ local function handleserver( server, addr, port, pattern, listener, sslctx ) -- local interface = { _connections = 0; + type = "server"; conn = server; onconnect = listener.onconnect; -- will be called when new client connected eventread = false; -- read event handler |