aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index b89f6cb8..ce69abb1 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -575,7 +575,6 @@ function interface:inittls(tls_ctx)
if tls_ctx then self.tls_ctx = tls_ctx; end
self._tls = true;
self:debug("Starting TLS now");
- self:del();
self:updatenames(); -- Can't getpeer/sockname after wrap()
local ok, conn, err = pcall(luasec.wrap, self.conn, self.tls_ctx);
if not ok then
@@ -615,7 +614,7 @@ function interface:inittls(tls_ctx)
self.onreadable = interface.tlshandshake;
self:setreadtimeout(cfg.ssl_handshake_timeout);
self:setwritetimeout(cfg.ssl_handshake_timeout);
- self:add(true, true);
+ self:set(true, true);
end
function interface:tlshandshake()