Skip to content

Commit 8f381f2

Browse files
committed
Adding timeout to utils.http_request()
1 parent 7e5438a commit 8f381f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routersploit/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ def random_text(length, alph=string.ascii_letters+string.digits):
377377
def http_request(method, url, **kwargs):
378378
""" Wrapper for 'requests' silencing exceptions a little bit. """
379379

380+
kwargs.setdefault('timeout', 30.0)
380381
kwargs.setdefault('verify', False)
381382

382383
try:

0 commit comments

Comments
 (0)