diff options
author | Kim Alvefur <zash@zash.se> | 2016-01-09 23:54:19 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-01-09 23:54:19 +0100 |
commit | de6d620539e9c011ed344c5847da161d52ec5622 (patch) | |
tree | dda4b86b03e4ed8ebb82e9fce5dd323decdf1bef | |
parent | 03859deec951c8dad6519db29ff77c00bcebdbce (diff) | |
download | prosody-de6d620539e9c011ed344c5847da161d52ec5622.tar.gz prosody-de6d620539e9c011ed344c5847da161d52ec5622.zip |
net.server_select: Add 'server' method to client connections (present in server_event)
-rw-r--r-- | net/server_select.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua index d9826c02..eccc7239 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -398,6 +398,9 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport out_put "server.lua: closed client handler and removed socket from list" return true end + handler.server = function ( ) + return server + end handler.ip = function( ) return ip end |