Changeset 973 for branches/cname-collision
- Timestamp:
- 01/09/26 12:05:07 (3 weeks ago)
- File:
-
- 1 edited
-
branches/cname-collision/DNSDB.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cname-collision/DNSDB.pm
r970 r973 4869 4869 4870 4870 my $expires = shift || ''; 4871 $expires = 1 if $expires eq 'until'; # Turn some special values into the appropriate booleans. 4872 $expires = 0 if $expires eq 'after'; 4871 $expires = 't' if $expires eq 'until'; # Turn some special values into the appropriate booleans. 4872 $expires = 'f' if $expires eq 'after'; 4873 $expires = 't' if $expires eq '1'; 4874 $expires = 'f' if $expires eq '0'; 4873 4875 my $stamp = shift; 4874 4876 $stamp = '' if !$stamp; # Timestamp should be a string at this point. … … 4880 4882 return ('FAIL', "expires must be 1, 't', or 'until', or 0, 'f', or 'after'") 4881 4883 if ($stamp && !defined($expires)) 4882 || ($stamp && $expires ne ' 0' && $expires ne '1' && $expires ne 't' && $expires ne 'f');4884 || ($stamp && $expires ne 't' && $expires ne 'f'); 4883 4885 4884 4886 # Spaces are evil. … … 4920 4922 host => $host, rectype => $rectype, val => $val, addr => $addr, 4921 4923 dist => \$dist, port => \$port, weight => \$weight, 4924 stamp => \$stamp, expires => $expires, 4922 4925 fields => \$fields, vallist => \@vallist); 4923 4926 … … 5030 5033 5031 5034 my $expires = shift || ''; 5032 $expires = 1 if $expires eq 'until'; # Turn some special values into the appropriate booleans. 5033 $expires = 0 if $expires eq 'after'; 5035 $expires = 't' if $expires eq 'until'; # Turn some special values into the appropriate booleans. 5036 $expires = 'f' if $expires eq 'after'; 5037 $expires = 't' if $expires eq '1'; 5038 $expires = 'f' if $expires eq '0'; 5034 5039 my $stamp = shift; 5035 5040 $stamp = '' if !$stamp; # Timestamp should be a string at this point. … … 5040 5045 return ('FAIL', "expires must be 1, 't', or 'until', or 0, 'f', or 'after'") 5041 5046 if ($stamp && !defined($expires)) 5042 || ($stamp && $expires ne ' 0' && $expires ne '1' && $expires ne 't' && $expires ne 'f');5047 || ($stamp && $expires ne 't' && $expires ne 'f'); 5043 5048 5044 5049 # Spaces are evil. … … 5086 5091 host => $host, rectype => $rectype, val => $val, addr => $addr, 5087 5092 dist => \$dist, port => \$port, weight => \$weight, 5093 stamp => \$stamp, expires => $expires, 5088 5094 fields => \$fields, vallist => \@vallist, 5089 5095 update => $id);
Note:
See TracChangeset
for help on using the changeset viewer.
![[ DNS Administrator ]](/fx/dnsadmin-logo.png)