# HG changeset patch # User Kim Alvefur # Date 1540775589 -3600 # Node ID dcf466e04f81aca82b2d2ba7a875cae68daf1e88 # Parent 42eedef517dce11bedecf42a2e3773bf25b1fdf4 net.server_epoll: Use method to update peername on connect diff -r 42eedef517dc -r dcf466e04f81 net/server_epoll.lua --- a/net/server_epoll.lua Sun Oct 28 18:22:17 2018 +0100 +++ b/net/server_epoll.lua Mon Oct 29 02:13:09 2018 +0100 @@ -612,9 +612,7 @@ -- Connected! function interface:onconnect() - if self.conn and not self.peername and self.conn.getpeername then - self.peername, self.peerport = self.conn:getpeername(); - end + self:updatenames(); self.onconnect = noop; self:on("connect"); end