aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-18 17:15:52 +0200
committerKim Alvefur <zash@zash.se>2016-08-18 17:15:52 +0200
commit74534761b33e3da375f56bb4e0b2bf3ae40ff7d1 (patch)
tree24b58df49ff8e9351d25bd1bdc98e6524775bd4f /net/server_epoll.lua
parent8182ccc0d0a88f4d68eaeb6239cb1b06a72a1958 (diff)
downloadprosody-74534761b33e3da375f56bb4e0b2bf3ae40ff7d1.tar.gz
prosody-74534761b33e3da375f56bb4e0b2bf3ae40ff7d1.zip
net.server_epoll: Make sure a recent LuaSocket is avaliable
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 708d4ba5..e85947ae 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -22,6 +22,8 @@ local luasec = require "ssl";
local gettime = require "util.time".now;
local createtable = require "util.table".create;
+assert(socket.tcp6 and socket.tcp4, "Incompatible LuaSocket version");
+
local _ENV = nil;
local cfg = {