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 | d2bf6120f1eba0eebdda123b04c4848c14d5e9fb (patch) | |
tree | dda4b86b03e4ed8ebb82e9fce5dd323decdf1bef | |
parent | fd5d8d5b29932bd63ced20888f84c5382900776f (diff) | |
download | prosody-d2bf6120f1eba0eebdda123b04c4848c14d5e9fb.tar.gz prosody-d2bf6120f1eba0eebdda123b04c4848c14d5e9fb.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 |