From 59be9d9f5ee741745763c1152b262b9f4e3cbf74 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 12 Oct 2018 16:24:49 +0200 Subject: net.server: Remove socket constructor fallback Should no longer be needed --- net/server_select.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/server_select.lua') 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 -- cgit v1.2.3