aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/server_epoll.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 4e2faf1b..564444f8 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -540,7 +540,7 @@ end
-- 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;