Software /
code /
prosody
Diff
net/server_select.lua @ 7066:7d5a1fb9bf9e
net.server_select: Add 'server' method to client connections (present in server_event)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 09 Jan 2016 23:54:19 +0100 |
parent | 7043:14bc5593b97e |
child | 7074:3ff83773ffc0 |
child | 7098:5286e79c6829 |
line wrap: on
line diff
--- a/net/server_select.lua Sat Jan 09 16:58:39 2016 +0100 +++ b/net/server_select.lua Sat Jan 09 23:54:19 2016 +0100 @@ -398,6 +398,9 @@ 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