Add InetContainer with scopes of containing and contained (#32802)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-11-08 10:08:36 +00:00
1 parent df54196a14
commit bde0f1239a
7 files changed
+18 -6

No files matched your search

+2 -2
View File
@@ -80,9 +80,9 @@ module Mastodon::CLI
end
ip_blocks = if options[:force]
IpBlock.where('ip >>= ?', address)
IpBlock.containing(address)
else
IpBlock.where('ip <<= ?', address)
IpBlock.contained_by(address)
end
if ip_blocks.empty?