aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
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 59217a0c..53330997 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 c5e0772f..daad0f50 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -401,6 +401,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