diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-17 20:30:41 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-17 20:30:41 +0000 |
commit | 894d94669187e906df97ad01473d2cb7041b97ae (patch) | |
tree | 940e99d1d7b234a8b98d0c1a38b54cc02e3fa681 /net/server_event.lua | |
parent | c5377ba75fa5aa15cbb04c565d2d3d4520145cb9 (diff) | |
download | prosody-894d94669187e906df97ad01473d2cb7041b97ae.tar.gz prosody-894d94669187e906df97ad01473d2cb7041b97ae.zip |
net.server_event: Add properties like _ip and _port to server objects too
Diffstat (limited to 'net/server_event.lua')
-rw-r--r-- | net/server_event.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index 2f9ab7d9..53198a12 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -623,6 +623,9 @@ do readcallback = false; -- read event callback fatalerror = false; -- error message nointerface = true; -- lock/unlock parameter + + _ip = addr, _port = port, _pattern = pattern, + _sslctx = sslctx; } interface.id = tostring(interface):match("%x+$"); interface.readcallback = function( event ) -- server handler, called on incoming connections |