Changeset

9495:89e05b118f6e

net.server: Remove socket constructor fallback Should no longer be needed
author Kim Alvefur <zash@zash.se>
date Fri, 12 Oct 2018 16:24:49 +0200 (2018-10-12)
parents 9494:b19f676203fd
children 9496:4ac3103787cc
files net/server_event.lua net/server_select.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Fri Oct 12 16:21:16 2018 +0200
+++ b/net/server_event.lua	Fri Oct 12 16:24:49 2018 +0200
@@ -737,7 +737,7 @@
 			typ = "tcp4";
 		end
 	end
-	local create = socket[typ] or socket.tcp;
+	local create = socket[typ];
 	if type( create ) ~= "function"  then
 		return nil, "invalid socket type"
 	end
--- a/net/server_select.lua	Fri Oct 12 16:21:16 2018 +0200
+++ b/net/server_select.lua	Fri Oct 12 16:24:49 2018 +0200
@@ -1017,7 +1017,7 @@
 			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