From 72decbc631b15f0c583c81395a52e6ccdc5bd728 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 17 Nov 2018 16:26:40 +0100 Subject: net.server_select: Fix IP validation to use correct variable (thanks quest) Copy-paste mistake most likely. Not caught because server_select is ignored by luacheck. --- net/server_select.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/server_select.lua b/net/server_select.lua index bc86742c..1a40a6d3 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -1009,7 +1009,7 @@ local addclient = function( address, port, listeners, pattern, sslctx, typ ) err = "luasec not found" end if not typ then - local n = inet_pton(addr); + local n = inet_pton(address); if not n then return nil, "invalid-ip"; end if #n == 16 then typ = "tcp6"; -- cgit v1.2.3