diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-18 17:15:52 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-18 17:15:52 +0200 |
commit | 85891f31602f609c78ba53954358227371495b49 (patch) | |
tree | 24b58df49ff8e9351d25bd1bdc98e6524775bd4f | |
parent | f91a22024be743bd8ed3cfdf25a9ef2f99052cc6 (diff) | |
download | prosody-85891f31602f609c78ba53954358227371495b49.tar.gz prosody-85891f31602f609c78ba53954358227371495b49.zip |
net.server_epoll: Make sure a recent LuaSocket is avaliable
-rw-r--r-- | net/server_epoll.lua | 2 |
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 = { |