From de97a7a8473f68eff527c1ec6fb2482ba3d31523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Sun, 28 Jul 2019 16:09:12 +0000 Subject: set: contains: return the matching network MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- lua/inet/set.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/inet') diff --git a/lua/inet/set.lua b/lua/inet/set.lua index a5d9056..c96a57b 100644 --- a/lua/inet/set.lua +++ b/lua/inet/set.lua @@ -173,7 +173,7 @@ function inet_set:contains(net) for i=1,#nets do local n = nets[i] if n == net or n:contains(net) then - return true + return n end end return false -- cgit v1.2.1