Changeset 2207
- Timestamp:
- Feb 27, 2009, 4:37:44 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dns/invirt-dns
r2201 r2207 64 64 domain = name 65 65 else: 66 # Look for the longest-matching domain. (This works because domain 67 # will remain bound after breaking out of the loop.) 66 # Look for the longest-matching domain. 68 67 best_domain = '' 69 68 for domain in self.domains: … … 72 71 if best_domain == '': 73 72 if name.endswith('.in-addr.arpa'): 74 best_domain = name # Act authoritative for the IP address for reverse resolution requests 73 # Act authoritative for the IP address for reverse resolution requests 74 best_domain = name 75 75 else: 76 76 return defer.fail(failure.Failure(dns.DomainError(name)))
Note: See TracChangeset
for help on using the changeset viewer.