=================================================================== RCS file: /cvs/trango/Net-Telnet-Trango/scripts/update_trango.pl,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- trango/Net-Telnet-Trango/scripts/update_trango.pl 2005/11/17 00:40:06 1.6 +++ trango/Net-Telnet-Trango/scripts/update_trango.pl 2005/11/17 20:09:45 1.7 @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $RedRiver: update_trango.pl,v 1.5 2005/11/16 21:39:51 andrew Exp $ +# $RedRiver: update_trango.pl,v 1.6 2005/11/17 00:40:06 andrew Exp $ ######################################################################## # update_trango.pl *** Updates trango foxes with a new firmware # @@ -333,7 +333,11 @@ next if /^#/; next if /^$/; if ($in_ip_list) { - push @{ $conf{'ips'} }, $_; + if (/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.)(\d{1,3})-(\d{1,3})/) { + push @{ $conf{'ips'} }, $1 . $_ for ($2..$3); + } else { + push @{ $conf{'ips'} }, $_; + } } else { my ($key, $val) = split /\s+/, $_, 2; @@ -357,6 +361,8 @@ if (not exists $conf{$_}); } + #print Dump \%conf; + #exit; return \%conf; }