def verify_request(self, request, client_address):
        """
        Returns True if the client at `client_address` is on a legal host.

        request: string
            Request message.

        client_address: ``(host, port)``
            Source of client request.
        """
        host, port = client_address
        if self._hosts in host:
            return True
        logging.warning('Rejecting connection from %s: allowed hosts %s',
                        host, self._hosts)
        return False
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.util/src/openmdao/util/log.py/_LogServer.verify_request/swapped operands of `in`