# HG changeset patch # User Kim Alvefur # Date 1525282171 -7200 # Node ID 0364454bdd7753b73f90b67238ad5abf4c94dc52 # Parent 2bfe963f304198e0e1da4c07c7a2f23b57ea2e5b net.server_epoll: Guard against connection missing the getpeername method (thanks LuaSec) diff -r 2bfe963f3041 -r 0364454bdd77 net/server_epoll.lua --- a/net/server_epoll.lua Wed May 02 19:20:57 2018 +0200 +++ b/net/server_epoll.lua Wed May 02 19:29:31 2018 +0200 @@ -540,7 +540,7 @@ -- Connected! function interface:onconnect() - if self.conn and not self.peername then + if self.conn and not self.peername and self.conn.getpeername then self.peername, self.peerport = self.conn:getpeername(); end self.onconnect = noop;