aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-04-01 15:02:36 +0100
committerMatthew Wild <mwild1@gmail.com>2014-04-01 15:02:36 +0100
commit9fd39145329e5b133321e11c461ab337dcd46f56 (patch)
tree5922ad0f54f6bacd39cea376012e8ac27eaf58e1 /net
parent3fd7b097c1a4272388f334abd36fdc05612dc939 (diff)
parent2f22ec3870c0e7dfcd4008bcfc4740fe83186622 (diff)
downloadprosody-9fd39145329e5b133321e11c461ab337dcd46f56.tar.gz
prosody-9fd39145329e5b133321e11c461ab337dcd46f56.zip
Merge
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua1
-rw-r--r--net/server_select.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index e320b15c..25799640 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -367,6 +367,7 @@ do
function interface_mt:ssl()
return self._usingssl
end
+ interface_mt.clientport = interface_mt.port -- COMPAT server_select
function interface_mt:type()
return self._type or "client"
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