Skip to content

Commit

Permalink
Adjust requests timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
yassineaboukir committed Mar 21, 2019
1 parent 4a545e6 commit 50313b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sublert.py
Expand Up @@ -180,7 +180,7 @@ def lookup(self, domain, wildcard = True):
url = base_url.format(domain)
subdomains = set()
user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:64.0) Gecko/20100101 Firefox/64.0'
req = requests.get(url, headers={'User-Agent': user_agent}, timeout=30, verify=False) #times out after 8 seconds waiting
req = requests.get(url, headers={'User-Agent': user_agent}, timeout=20, verify=False) #times out after 8 seconds waiting
if req.status_code == 200:
try:
content = req.content.decode('utf-8')
Expand Down

0 comments on commit 50313b5

Please sign in to comment.