Changeset 672
- Timestamp:
- 01/15/15 14:53:44 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns-rpc.cgi
r671 r672 547 547 if (scalar(@$reclist) == 0) { 548 548 # Aren't Magic Numbers Fun? See pseudotype list in dnsadmin. 549 my $type = ($cidr->{isv6} ? 65284: ($cidr->masklen == 32 ? 65280 : 65283) );549 my $type = ($cidr->{isv6} ? ($cidr->masklen == 128 ? 65281 : 65284) : ($cidr->masklen == 32 ? 65280 : 65283) ); 550 550 rpc_addRec(defrec => 'n', revrec => 'y', parent_id => $zonelist->[0]->{rdns_id}, type => $type, 551 551 address => "$cidr", %args); … … 558 558 next unless $rec->{val} eq $filt; # make sure we really update the record we want to update. 559 559 updateRec(defrec =>'n', revrec => 'y', id => $rec->{record_id}, 560 parent_id => $zonelist->[0]->{rdns_id}, %args);560 parent_id => $zonelist->[0]->{rdns_id}, address => "$cidr", %args); 561 561 $flag = 1; 562 562 last; # only do one record. … … 648 648 # Re-add one to match the parent if we've been given a pattern to use. 649 649 rpc_addRec(defrec => 'n', revrec => 'y', parent_id => $zonelist->[0]->{rdns_id}, 650 type => ($zone->{isv6} ? 65284 : 65283), address => "$cidr", %args);650 type => ($zone->{isv6} ? 65284 : 65283), address => "$cidr", name => $args{parpatt}, %args); 651 651 } 652 652
Note:
See TracChangeset
for help on using the changeset viewer.