# The request is to an IP address, not a hostname
+ ## FIXME: This is broken as o.hostname contains the IP also!
# The connection was not a valid HTTP request and was bypassed by the proxy
no_fetch_extract = tldextract.TLDExtract(fetch=False)
ext = tldextract.extract(self.url) # Extract TLD parts
- self.domainname = '.'.join(ext[1:3]) # rejoin subdomain and domain
+ # There is no TLD so just return domain (Most likely an IP address)
+ self.domainname = '.'.join(ext[1:3]) # rejoin subdomain and domain
def run_regex(self, line, process_hostnames=False):
''' Try to parse the line with a regex; return True if sucessfull. '''