Changeset 833
- Timestamp:
- 04/19/22 13:55:07 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r832 r833 3 3 ## 4 4 # $Id$ 5 # Copyright 2008-202 1Kris Deugau <kdeugau@deepnet.cx>5 # Copyright 2008-2022 Kris Deugau <kdeugau@deepnet.cx> 6 6 # 7 7 # This program is free software: you can redistribute it and/or modify … … 1083 1083 1084 1084 # SRV target check - IP addresses not allowed. Must be a more or less well-formed hostname. 1085 # Allow a bare . to indicate "this service does not exist" 1085 1086 return ('FAIL', "SRV records cannot point directly to an IP address") 1086 if ${$args{val}} =~ /^(?:[\d.]+|[0-9a-fA-F:]+)$/;1087 if ${$args{val}} ne '.' && ${$args{val}} =~ /^(?:[\d.]+|[0-9a-fA-F:]+)$/; 1087 1088 } else { 1088 1089 # hm. we can't do anything sane with IP values here; part of the record data is in … … 1098 1099 1099 1100 # SRV target check - IP addresses not allowed. Must be a more or less well-formed hostname. 1101 # Allow a bare . to indicate "this service does not exist" 1100 1102 return ('FAIL', "SRV records cannot point directly to an IP address") 1101 if ${$args{host}} =~ /^(?:[\d.]+|[0-9a-fA-F:]+)$/;1103 if ${$args{host}} ne '.' && ${$args{host}} =~ /^(?:[\d.]+|[0-9a-fA-F:]+)$/; 1102 1104 1103 1105 # SRV records in reverse zones get stricter treatment. The UI bars adding them in
Note:
See TracChangeset
for help on using the changeset viewer.