aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-12 16:24:49 +0200
committerKim Alvefur <zash@zash.se>2018-10-12 16:24:49 +0200
commit59be9d9f5ee741745763c1152b262b9f4e3cbf74 (patch)
tree0521e9e97def91859469fc9b4a049e46f5accd87 /net/server_select.lua
parent4cc41d35f2ae11f8420e8f5cf503ca0b33751515 (diff)
downloadprosody-59be9d9f5ee741745763c1152b262b9f4e3cbf74.tar.gz
prosody-59be9d9f5ee741745763c1152b262b9f4e3cbf74.zip
net.server: Remove socket constructor fallback
Should no longer be needed
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index c5f9004c..50e439b1 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -1017,7 +1017,7 @@ local addclient = function( address, port, listeners, pattern, sslctx, typ )
typ = "tcp4";
end
end
- local create = luasocket[typ] or luasocket.tcp;
+ local create = luasocket[typ];
if type( create ) ~= "function" then
err = "invalid socket type"
end