Changeset 760 for trunk/dns.cgi


Ignore:
Timestamp:
06/13/17 17:12:15 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Tweak record list display to show standard "TYPEnnn" placeholder for DNS
record types that are "unknown". Shouldn't be many for a while with the
fresh pull from the official IANA list in r751.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r758 r760  
    21552155
    21562156  foreach my $rec (@$foo2) {
    2157     $rec->{type} = $typemap{$rec->{type}};
     2157    if ($typemap{$rec->{type}}) {
     2158      $rec->{type} = $typemap{$rec->{type}};
     2159    } else {
     2160      $rec->{type} = "TYPE$rec->{type}";
     2161    }
    21582162    $rec->{fwdzone} = $rev eq 'n';
    21592163    $rec->{ttl} = '(auto)' if $rec->{ttl} == -1;
Note: See TracChangeset for help on using the changeset viewer.