- Timestamp:
- 12/30/13 17:35:19 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r567 r571 1136 1136 my $tmpzone = $zone; 1137 1137 $tmpzone =~ s/\.in-addr\.arpa\.?//; 1138 return ('FAIL', "Non-numerics in apparent IPv4 reverse zone name ") if $tmpzone !~ /^(?:\d+-)?[\d\.]+$/;1138 return ('FAIL', "Non-numerics in apparent IPv4 reverse zone name [$tmpzone]") if $tmpzone !~ m{^(?:\d+[/-])?[\d\.]+$}; 1139 1139 1140 1140 # Snag the octet pieces … … 1153 1153 # Alternate form: The second number is actually the real netmask, not the end of the range. 1154 1154 my $masklen = 0; 1155 if ($octs[0] =~ /^((\d+)-(\d+))$/) { # take the range...1155 if ($octs[0] =~ m{^((\d+)[/-](\d+))$}) { # take the range... 1156 1156 if (24 < $3 && $3 < 31) { 1157 1157 # we have a real netmask
Note:
See TracChangeset
for help on using the changeset viewer.