aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-04-01 15:26:40 +0200
committerKim Alvefur <zash@zash.se>2014-04-01 15:26:40 +0200
commita447bea855199d910e39a82d7e0eda24befbbc7a (patch)
treecad016a5f454d0b8045d7f614acd2ec2a57bbedf /net/server_select.lua
parent62274b71f30db40007a0d23cfcbd596765cc256b (diff)
downloadprosody-a447bea855199d910e39a82d7e0eda24befbbc7a.tar.gz
prosody-a447bea855199d910e39a82d7e0eda24befbbc7a.zip
net.server_{select,event}: Add compat code for supporting the same client port API on connections
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 22887265..4bda3ef0 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -397,6 +397,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
handler.clientport = function( )
return clientport
end
+ handler.port = handler.clientport -- COMPAT server_event
local write = function( self, data )
bufferlen = bufferlen + #data
if bufferlen > maxsendlen then