Files
oddmuse/modules
Alex Schroeder 536757e8e2 ban-contributors: fix get_range
For 8.21.11.127 we have to issues: the key in the result set is
netrange and not inetnum, and the result for netrange is a list of
ranges and not just a single range. The new code no longer presumes to
know the keys. It just goes through all of them, trying to find
something that looks like a range. When it finds an array reference,
it goes through each entry, looking for a range. The first key where
are least one range is found is returned, with all the ranges for that
key, in our case that would be 8.0.0.0 - 8.127.255.255 and 8.21.11.0 -
8.21.11.255.

The ban-contributors code then presents two forms, one for each match.
2021-09-25 16:17:37 +02:00
..
2015-09-12 19:06:59 +02:00
2018-10-21 10:01:48 +02:00
2020-08-12 20:53:58 +02:00
2019-10-14 22:36:32 +02:00
2020-08-12 20:53:58 +02:00
2015-10-21 12:15:25 +03:00
2014-11-06 21:48:08 +01:00
2021-03-26 15:58:15 +01:00
2016-06-23 00:34:56 +02:00
2015-10-15 14:41:55 +02:00
2020-03-19 14:07:59 +01:00
2020-08-12 20:53:58 +02:00
2015-10-18 02:48:06 +03:00
2015-07-28 10:47:21 +02:00
2016-06-23 00:34:56 +02:00
2017-09-07 22:27:47 +02:00
2016-06-19 11:55:58 +02:00
2019-01-24 22:22:45 +01:00
2015-10-31 02:58:00 +02:00
2018-09-11 13:11:44 +02:00
2019-01-24 22:22:45 +01:00
2019-01-27 20:07:31 +01:00
2020-08-12 20:53:58 +02:00
2015-08-18 11:11:13 +02:00
2019-10-06 18:04:44 +02:00
2017-04-21 02:03:15 +03:00
2016-08-02 11:49:41 +02:00
2020-08-12 20:53:58 +02:00
2020-08-12 20:53:58 +02:00
2020-08-12 20:53:58 +02:00
2016-08-08 11:30:27 +02:00
2014-08-13 12:06:55 +02:00
2015-10-15 14:24:08 +02:00
2020-05-03 21:09:30 +02:00
2020-02-06 14:01:33 +01:00