Romain LE DISEZ 9a17e61e7f Do not follow CNAME when host is in storage_domain
Commit bfbf0d1e78ff47937adb06bce648a0b915c838d1 removed a check that was
meant to avoid to resolve a storage domain. It breaks the behavior of the
middleware as the resolution of a storage domain will return nothing, so
the global resolution will fail.

Example:
  Host header: storage.example.com
  storage_domain: [.storage.example.com]

  Host does not end with one of the storage_domains (because of the dot),
  so the middleware will loop to resolve the CNAME of storage.example.com,
  but it won't succeed because it's a storage_domain.

Closes-Bug: #1311435

Change-Id: If594b816ff2f7025521de716b32c42bf3137f5dd
2017-02-23 10:39:05 +01:00
..
2016-06-15 16:36:25 +01:00