Changeset 354
- Timestamp:
- Sep 14, 2018, 9:36:53 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ddt/ddt
r353 r354 21 21 use strict; 22 22 #use warnings; 23 use version; our $VERSION = version->declare('0.11. 5');23 use version; our $VERSION = version->declare('0.11.6'); 24 24 25 25 use Getopt::Long qw(GetOptions); … … 321 321 my $cidr = shift; 322 322 323 return 1if $cidr !~ m{^(\d+\.){3}\d+/\d+$};324 return 1if not NetAddr::IP->new($cidr);325 return 0;323 return 0 if $cidr !~ m{^(\d+\.){3}\d+/\d+$}; 324 return 0 if not NetAddr::IP->new($cidr); 325 return 1; 326 326 } 327 327 … … 1669 1669 1670 1670 my $timestamp = time; 1671 $computer_db->{'dset'}{$sector}{'ip-range'} | = [];1671 $computer_db->{'dset'}{$sector}{'ip-range'} ||= []; 1672 1672 LOOP_ON_CIDR: 1673 1673 for my $cidr_current (@{$computer_db->{'dset'}{$sector}{'ip-range'}}) {
Note: See TracChangeset
for help on using the changeset viewer.