aboutsummaryrefslogtreecommitdiffstats
path: root/net
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
commit85891f31602f609c78ba53954358227371495b49 (patch)
tree24b58df49ff8e9351d25bd1bdc98e6524775bd4f /net
parentf91a22024be743bd8ed3cfdf25a9ef2f99052cc6 (diff)
downloadprosody-85891f31602f609c78ba53954358227371495b49.tar.gz
prosody-85891f31602f609c78ba53954358227371495b49.zip
net.server_epoll: Make sure a recent LuaSocket is avaliable
Diffstat (limited to 'net')
-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 = {