diff --git a/swift/common/middleware/cname_lookup.py b/swift/common/middleware/cname_lookup.py index bd3697144b..50a85566b5 100644 --- a/swift/common/middleware/cname_lookup.py +++ b/swift/common/middleware/cname_lookup.py @@ -115,8 +115,6 @@ class CNAMELookupMiddleware(object): port = '' if ':' in given_domain: given_domain, port = given_domain.rsplit(':', 1) - if given_domain == self.storage_domain[1:]: # strip initial '.' - return self.app(env, start_response) if is_ip(given_domain): return self.app(env, start_response) a_domain = given_domain