Changeset 683
- Timestamp:
- 06/17/15 15:12:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns-rpc.cgi
r682 r683 841 841 _commoncheck(\%args, 'y'); 842 842 843 # Caller may pass 'n' in delsubs. Assume it should be false/undefined 844 # unless the caller explicitly requested 'yes' 845 $args{delsubs} = 0 if $args{delsubs} ne 'y'; 846 843 847 # much like addOrUpdateRevRec() 844 848 my $zonelist = $dnsdb->getZonesByCIDR(%args); … … 852 856 my $zone = new NetAddr::IP $zonelist->[0]->{revnet}; 853 857 if ($zone->contains($cidr)) { 854 855 858 if ($args{delsubs}) { 856 859 # Delete ALL EVARYTHING!!one11!! in $args{cidr} … … 879 882 } else { 880 883 # Selectively delete only exact matches on $args{cidr} 881 882 884 # We need to strip the CIDR mask on IPv4 /32 assignments, or we can't find single-IP records 883 885 my $filt = ($cidr->{isv6} || $cidr->masklen != 32 ? "$cidr" : $cidr->addr);
Note:
See TracChangeset
for help on using the changeset viewer.