- Timestamp:
- 01/22/15 18:27:21 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns-rpc.cgi
r676 r678 590 590 # types are nominally impossible here. 591 591 next unless $rec->{type} == 65282 || $rec->{type} == 65283 || $rec->{type} == 65284; 592 $dnsdb->updateRec(defrec =>'n', revrec => 'y', id => $rec->{record_id},592 rpc_updateRec(defrec => 'n', revrec => 'y', id => $rec->{record_id}, 593 593 parent_id => $zdata->{rdns_id}, %args); 594 594 last; # only do one record. … … 610 610 # loop over passed IP/hostname pairs 611 611 foreach my $key (keys %args) { 612 next unless $key =~ /^host_([\d.]+|[\da-f:]+)$/;612 next unless $key =~ m{^host_((?:[\d.]+|[\da-f:]+)(?:/\d+)?)$}; 613 613 my $ip = $1; 614 614 push @ret, addOrUpdateRevRec(cidr => $ip, name => $args{$key}, %args);
Note:
See TracChangeset
for help on using the changeset viewer.