Changeset 889 for trunk/compact-recs.pl
- Timestamp:
- 06/24/25 12:23:01 (7 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/compact-recs.pl
r852 r889 4 4 ## 5 5 # $Id$ 6 # Copyright 2013-2022 Kris Deugau <kdeugau@deepnet.cx>6 # Copyright 2013-2022,2025 Kris Deugau <kdeugau@deepnet.cx> 7 7 # 8 8 # This program is free software: you can redistribute it and/or modify … … 170 170 # skip existing template within the new template's range 171 171 next if $val =~ m{/\d+$}; 172 DNSDB::_template4_expand(\$cmp, $val, \$cidr); 172 if ($cmp =~ /\%-?c/) { 173 # Determine "nth host" index value of $val for %c and %-c 174 my $possible = new NetAddr::IP $val; 175 my $valindex = $possible - $cidr; 176 $valindex-- if $cmp =~ /\%-c/; 177 DNSDB::_template4_expand(\$cmp, $val, \$cidr, $valindex); 178 } else { 179 DNSDB::_template4_expand(\$cmp, $val, \$cidr); 180 } 173 181 $delsth->execute($id) if $cmp eq $host; 174 182 $delcnt++ if $cmp eq $host;
Note:
See TracChangeset
for help on using the changeset viewer.