mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-30 00:34:36 +00:00
4a24c174f2
0.0.0.0/0 is not a valid range. Bug: T218074 Change-Id: I562fefe66c0b692a99f546ca2d4c833dd508272a
5 lines
218 B
Perl
5 lines
218 B
Perl
ip_in_range( '12.34.56.78', '12.34.56.0/24' ) &
|
|
ip_in_range( '12.34.56.78', '12.34.0.0/16' ) &
|
|
ip_in_range( '12.34.56.78', '12.0.0.0/8' ) &
|
|
ip_in_range( '1.1.1.1', '1.1.1.1/32' ) &
|
|
ip_in_range( '1.1.1.1', '0.0.0.0/1' ) |