Skip to content

Commit e64815f

Browse files
committed
Fix for "user-agent not specified"
1 parent 300da27 commit e64815f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/virtual_host_scanner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, target, wordlist, **kwargs):
4949
self.hosts = []
5050

5151
# available user-agents
52-
self.user_agents = list(kwargs.get('user_agents', [DEFAULT_USER_AGENT]))
52+
self.user_agents = list(kwargs.get('user_agents')) or [DEFAULT_USER_AGENT]
5353

5454
@property
5555
def ignore_http_codes(self):

0 commit comments

Comments
 (0)