diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-29 02:13:09 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-29 02:13:09 +0100 |
commit | fb768f193f73d360a61758b5a46e14d81c967151 (patch) | |
tree | 4f7f80c60a404082d62a40817d69ab3232c4cfe5 /net | |
parent | 1f9b825c34e068f951cf4154ceb71580aea23eb0 (diff) | |
download | prosody-fb768f193f73d360a61758b5a46e14d81c967151.tar.gz prosody-fb768f193f73d360a61758b5a46e14d81c967151.zip |
net.server_epoll: Use method to update peername on connect
Diffstat (limited to 'net')
-rw-r--r-- | net/server_epoll.lua | 4 |
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 |