'Builds a map from address to whether it listens on ssl in any server block'

def _build_addr_to_ssl(self):

    servers = self._get_raw_servers()
    addr_to_ssl = {}
    for filename in servers:
        for (server, _) in servers[filename]:
            parsed_server = _parse_server_raw(server)
            for addr in parsed_server['addrs']:
                addr_tuple = addr.normalized_tuple()
                if (addr_tuple not in addr_to_ssl):
                    addr_to_ssl[addr_tuple] = addr.ssl
                addr_to_ssl[addr_tuple] = (addr.ssl or addr_to_ssl[addr_tuple])
    return addr_to_ssl
