'Has this host been excluded from the proxy config'

def bypass_host(self, hostname):

    if (self.bypass_hosts is AllHosts):
        return True
    bypass = False
    for domain in self.bypass_hosts:
        if hostname.endswith(domain):
            bypass = True
    return bypass
