aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-29 02:13:09 +0100
committerKim Alvefur <zash@zash.se>2018-10-29 02:13:09 +0100
commitfb768f193f73d360a61758b5a46e14d81c967151 (patch)
tree4f7f80c60a404082d62a40817d69ab3232c4cfe5 /net/server_epoll.lua
parent1f9b825c34e068f951cf4154ceb71580aea23eb0 (diff)
downloadprosody-fb768f193f73d360a61758b5a46e14d81c967151.tar.gz
prosody-fb768f193f73d360a61758b5a46e14d81c967151.zip
net.server_epoll: Use method to update peername on connect
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index ce8996a8..f7e5ae49 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -612,9 +612,7 @@ end
-- 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