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 | 3b1c2ebbd96a4da0baea1ede8edaae0a191aa7f4 (patch) | |
tree | d617f9afa351bdab3ef51879e1e4c999472273ce /net/server_event.lua | |
parent | c0d46cbf2a388233fc521743605c59a465e7acda (diff) | |
download | prosody-3b1c2ebbd96a4da0baea1ede8edaae0a191aa7f4.tar.gz prosody-3b1c2ebbd96a4da0baea1ede8edaae0a191aa7f4.zip |
net.server_event: Add conn.type == 'server' for server sockets (fixes closeallservers() )
Diffstat (limited to 'net/server_event.lua')
-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 |