Content deleted Content added
make the response more similar to the MediaWiki Action API |
find whether we are dealing with IPs or ranges in the module, rather than making clients do it |
||
Line 33:
-- Query IP addresses and ranges:
-- {
-- ips = {'1.2.3.4', '4.5.6.0/24', '2001:db8::ff00:12:3456', '2001:db8::ff00:12:0/112'},
-- }
--
Line 49 ⟶ 48:
-- Combined query:
-- {
-- ips = {'1.2.3.4', '4.5.6.0/24', '2001:db8::ff00:12:3456', '2001:db8::ff00:12:0/112'},
-- entities = {'ussenate', 'ushr'}
-- }
Line 58 ⟶ 56:
-- {
-- sensitiveips = {
--
-- {
-- ip = '1.2.3.4',
-- ['ip-version'] = 'IPv4',
-- ['matches-range'] = '1.2.3.0/24',
-- ['entity-id'] = 'entityid'
-- },
▲-- ranges = {
-- {
-- range = '4.5.6.0/24',
-- type = 'range',
-- ['ip-version'] = 'IPv4',
-- ['matches-range'] = '4.5.0.0/16',
|