aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-09 23:54:19 +0100
committerKim Alvefur <zash@zash.se>2016-01-09 23:54:19 +0100
commitde6d620539e9c011ed344c5847da161d52ec5622 (patch)
treedda4b86b03e4ed8ebb82e9fce5dd323decdf1bef
parent03859deec951c8dad6519db29ff77c00bcebdbce (diff)
downloadprosody-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.lua3
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