# HG changeset patch # User Kim Alvefur # Date 1542468400 -3600 # Node ID f457edaab510c08f85daf26aed4e1b9f5b6a5621 # Parent fdefc43bffffd6dbeda9e36161e6fbc5aaa6f229 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. diff -r fdefc43bffff -r f457edaab510 net/server_select.lua --- 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";