diff options
author | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2019-07-28 16:09:12 +0000 |
---|---|---|
committer | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2019-07-28 16:09:12 +0000 |
commit | de97a7a8473f68eff527c1ec6fb2482ba3d31523 (patch) | |
tree | ef233bd3a10c6fd5c896095045e2968451e7029a /lua/inet/set.lua | |
parent | e4ef81a73657434575c7ceca81c7245ac8629b06 (diff) | |
download | lua-inet-de97a7a8473f68eff527c1ec6fb2482ba3d31523.tar.gz lua-inet-de97a7a8473f68eff527c1ec6fb2482ba3d31523.tar.xz lua-inet-de97a7a8473f68eff527c1ec6fb2482ba3d31523.zip |
set: contains: return the matching network
Signed-off-by: Asbjørn Sloth Tønnesen <ast@2e8.dk>
Diffstat (limited to 'lua/inet/set.lua')
-rw-r--r-- | lua/inet/set.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |