aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 086c8dfc..680c16d5 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -192,6 +192,10 @@ function interface:socket()
return self.conn;
end
+function interface:set_mode(new_mode)
+ self._pattern = new_mode;
+end
+
function interface:setoption(k, v)
-- LuaSec doesn't expose setoption :(
if self.conn.setoption then