Changeset

9634:f457edaab510 0.11

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.
author Kim Alvefur <zash@zash.se>
date Sat, 17 Nov 2018 16:26:40 +0100
parents 9632:fdefc43bffff
children 9635:fc2266339cd8 9636:fa35724dbdba
files net/server_select.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_select.lua	Sat Nov 17 15:36:10 2018 +0100
+++ b/net/server_select.lua	Sat Nov 17 16:26:40 2018 +0100
@@ -1009,7 +1009,7 @@
 		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";